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)

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

        Issue Links

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

          Activity

          Show
          daschl Michael Nitschinger added a comment - http://review.couchbase.org/#/c/24230
          Hide
          deeptida Deepti Dawar added a comment -

          Alright !

          Thanks for letting me know about the restriction policy.

          Let me explain regarding the commit. I did not update the commit from git as my public key is not added at the remote VM so it was giving error of permission denied.
          Hence, I just explicitly added your change in the MemcachedClient file.
          And after which only I have re-run and published the results.
          Please have a look.

          Show
          deeptida Deepti Dawar added a comment - Alright ! Thanks for letting me know about the restriction policy. Let me explain regarding the commit. I did not update the commit from git as my public key is not added at the remote VM so it was giving error of permission denied. Hence, I just explicitly added your change in the MemcachedClient file. And after which only I have re-run and published the results. Please have a look.
          Hide
          deeptida Deepti Dawar added a comment -

          Please find the attached log with changes taken from the commit http://review.couchbase.org/#/c/24230/

          Still the same errors persist.

          Show
          deeptida Deepti Dawar added a comment - Please find the attached log with changes taken from the commit http://review.couchbase.org/#/c/24230/ Still the same errors persist.

            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