Uploaded image for project: 'Spymemcached Java Client'
  1. Spymemcached Java Client
  2. SPY-111

Assertion/NPE Exception when trying to use auth and failover.


    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: library
    • Security Level: Public
    • Labels:


      When running the failover integration tests, it is possible that a node is removed from the cluster, but operations try to go towards the node. This results either in Assertion Exceptions or NPEs down the stack when trying to authenticate (but its not anymore part of the cluster).

      For example:
      69.15 SDKD: Jan 25, 2013 6:40:23 AM com.couchbase.client.CouchbaseConnection reconfigure
      69.15 SDKD: INFO: Scheduling Node localhost-27.local/ shutdown.

      leads into:
      75.15 SDKD: Exception in thread "Memcached IO over

      {MemcachedConnection to localhost-34.local/ localhost-30.local/ localhost-31.local/ localhost-27.local/}

      " java.lang.AssertionError: Couldn't find node connected to localhost-27.local/
      75.15 SDKD: at net.spy.memcached.MemcachedClient.findNode(MemcachedClient.java:2117)
      75.15 SDKD: at net.spy.memcached.MemcachedClient.connectionEstablished(MemcachedClient.java:2106)
      75.15 SDKD: at net.spy.memcached.MemcachedConnection.connected(MemcachedConnection.java:352)
      75.15 SDKD: at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:428)
      75.15 SDKD: at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:247)
      75.15 SDKD: at com.couchbase.client.CouchbaseConnection.run(CouchbaseConnection.java:266)

      1. readd_29_jan.txt
        280 kB
        Deepti Dawar
      2. readd_31_jan.txt
        82 kB
        Deepti Dawar

        Issue Links

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.



            • Assignee:
              daschl Michael Nitschinger
              daschl Michael Nitschinger
            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created:

                Gerrit Reviews

                There are no open Gerrit changes