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

Fix unit tests in CouchbaseRequestExecutorTests

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 2.5.3
    • library
    • None

    Description

      There appears to be a regression where a KeyNotFoundException is thrown when the SDK tries to lookup the primary node for a key. The exception is thrown here: https://github.com/couchbase/couchbase-net-client/blob/master/Src/Couchbase/Core/VBucket.cs#L46

      The exception is caught, but the non-primary node is then selected as the server the key is mapped to the non-primary. Note this appears to be introduced after 2.5.2 and eyeballing the value used to lookup in the primary in the dictionary - it appears to be the same.

      Attachments

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

        Activity

          jmorris Jeff Morris added a comment -

          The issue appears to be that the test was using port 8901 instead of 8091; I am not sure why this only failed intermittently, I would expect it to always fail.

          jmorris Jeff Morris added a comment - The issue appears to be that the test was using port 8901 instead of 8091; I am not sure why this only failed intermittently, I would expect it to always fail.

          People

            jmorris Jeff Morris
            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