Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-301

Strange Logic in CouchbaseClient observePoll method

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: .backlog1.x
    • Fix Version/s: .backlog1.x
    • Component/s: Core
    • Security Level: Public
    • Labels:
      None

      Description

      At CouchbaseClient.java line 2192 and line 2196

      They both call

      replicaPersistedTo++;

      it means when r.getValue() == ObserveResponse.NOT_FOUND_PERSISTED) && !isMaster, replicaPersistedTo will be called twice.

      Is that intensional. Looks odd to me.

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

        Activity

        Hide
        henrichen Henri Chen added a comment -

        BTW, The code is based on Github master.

        Show
        henrichen Henri Chen added a comment - BTW, The code is based on Github master.

          People

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

            Dates

            • Created:
              Updated:

              Gerrit Reviews

              There are no open Gerrit changes