Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-561

During a Hard Failover -1 is returned in VBucketMap for Primary and all Replicas

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Test Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0 Beta
    • Fix Version/s: None
    • Component/s: library
    • Labels:
      None

      Description

      Example VBucketMap:

      ["192.168.56.102:11210","192.168.56.103:11210"],"vBucketMap":[[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0]...

      This causes a IndexOutOfRangeException.

        Attachments

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

          Activity

          Hide
          jmorris Jeff Morris added a comment -

          Spoke with Mordy and trying the following approach:

          1 - If Primary is -1, then shuffle server list and randomly take a server
          2 - Send operation and if NMV is returned, update config (add wait event w/timeout to block until set by NotifyObserver)
          3 - Set a property for retry attempts and a configurable max retry limit
          4 - Resend operation
          5 - If max retries, then operation failed and return failure response to app layer

          Show
          jmorris Jeff Morris added a comment - Spoke with Mordy and trying the following approach: 1 - If Primary is -1, then shuffle server list and randomly take a server 2 - Send operation and if NMV is returned, update config (add wait event w/timeout to block until set by NotifyObserver) 3 - Set a property for retry attempts and a configurable max retry limit 4 - Resend operation 5 - If max retries, then operation failed and return failure response to app layer
          Hide
          jmorris Jeff Morris added a comment -

          I believe this is resolved by: NCBC-479

          Show
          jmorris Jeff Morris added a comment - I believe this is resolved by: NCBC-479

            People

            Assignee:
            jmorris Jeff Morris
            Reporter:
            jmorris Jeff Morris
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty