Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-14442

0x08 (NO BUCKET) returned in-situ after successful auth

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Blocker
    • 4.5.0
    • 4.5.0
    • memcached
    • Security Level: Public
    • None

    Description

      {markdown}

      Tested on "4.0.0-1817-rel-enterprise"

      I believe I'm seeing cases where a node is failed over – and, rather than closing the connection or failing immediately on auth, what actually happens is that the server, while maintaining the TCP connection, continues to respond with the `0x08` code.

      While it is possible to check for this code, self-destruct the server, and search for a new configuration (though doing this in the client would not be trivial), this will break older client versions not aware of the new error code.

      I'm not sure if this is intended behavior. I would expect (as before) that a failover would result in the termination of the TCP connection, rather than just leaving it "hanging"

      *Expected Behavior*

      If at auth-time the bucket does not exist, it should return that code (which it currently does not do). If a failover happened, the TCP connection should terminate, causing existing clients to revert to defined behavior. If there is some rationale for not terminating the connection; this behavior may be enabled via the `HELLO` command, or, as a last resort, by sending a `NOT_MY_VBUCKET` (with no payload) to the client. As `NOT_MY_VBUCKET` codes have a more defined path, the client will eventually attempt to load a new configuration.{markdown}

      Attachments

        Issue Links

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

          Activity

            People

              mnunberg Mark Nunberg (Inactive)
              mnunberg Mark Nunberg (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty