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

Observe failing when number of available nodes is less than the configured replica count

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2 Beta-2
    • Component/s: None
    • Labels:
      None

      Description

      Observe fails when the amount of available nodes is less than the replica count, this happens when e.g. a bucket is configured with 4 replicas but the cluster only has two nodes.

      Specifically, it attempts to access an array index of -1 when the vbucket config for the replica is not there. This obviously causes the client to raise an exception (about accessing an invalid index)

      This is probably best explained by the changeset here

      http://review.couchbase.org/21183

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

        Activity

        Hide
        ingenthr Matt Ingenthron added a comment -

        How does the failure occur? What kind of response is received?

        Show
        ingenthr Matt Ingenthron added a comment - How does the failure occur? What kind of response is received?
        Hide
        john John Zablocki (Inactive) added a comment -

        Mark has code that's been through Code Review for this.

        Show
        john John Zablocki (Inactive) added a comment - Mark has code that's been through Code Review for this.
        Hide
        john John Zablocki (Inactive) added a comment -

        Published and tagged

        Show
        john John Zablocki (Inactive) added a comment - Published and tagged

          People

          • Assignee:
            john John Zablocki (Inactive)
            Reporter:
            mnunberg Mark Nunberg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes