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

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

    Details

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

      Description

      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/10.3.121.207:11210for shutdown.

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

      {MemcachedConnection to localhost-34.local/10.3.121.212:11210 localhost-30.local/10.3.121.208:11210 localhost-31.local/10.3.121.209:11210 localhost-27.local/10.3.121.207:11210}

      " java.lang.AssertionError: Couldn't find node connected to localhost-27.local/10.3.121.207:11210
      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)

        Attachments

          Issue Links

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

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes