trondn / memcached

Where I put all my changes :)
http://code.google.com/p/memcached/
BSD 3-Clause "New" or "Revised" License
33 stars 5 forks source link

auth timeouts on few client nodes #6

Open bharatFlipkart opened 8 years ago

bharatFlipkart commented 8 years ago

We're using Couchbase client 1.4.2 with Spymemcached 2.11.3 to connect to Couchbase 2.2.0 production cluster. We specify quite a small operations timeout (10 ms) overriding net.spy.memcached.ConnectionFactory.getOperationTimeout() to comply with production requirements.

The problem is that initial auth operation issued in AuthThread.listSupportedSASLMechanisms() fails with timeout in net.spy.memcached.protocol.BaseOperationImpl.isTimedOut() and listSupportedSASLMechanisms() returns null, making AuthThread.run() to throw throw new IllegalStateException("Got empty SASL auth mech list."). As the result, the thread exits and the node will forever stay unauthenticated so no single request will ever be processed.

Exception in thread "Thread-108" java.lang.IllegalStateException: Got empty SASL auth mech list. at net.spy.memcached.auth.AuthThread.run(AuthThread.java:149)