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

.NET SDK fails to connect to correct node in custom port (cluster_run) multi-node setup

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.2.9
    • 3.2.8
    • library
    • None

    Description

      Summary

      When testing a .NET application against a development CB Server running multiple nodes via cluster_run, the .NET SDK fails to connect to the correct node, eventually giving up:

      Unhandled exception. Couchbase.Core.Exceptions.AmbiguousTimeoutException: The operation /35 timed out after 00:00:02.5000000. It was retried 6 times using Couchbase.Core.Retry.BestEffortRetryStrategy.
         at Couchbase.Utils.ThrowHelper.ThrowTimeoutException(IOperation operation, IErrorContext context)
         at Couchbase.Core.Retry.RetryOrchestrator.RetryAsync(BucketBase bucket, IOperation operation, CancellationTokenPair tokenPair)
         at Couchbase.KeyValue.CouchbaseCollection.UpsertAsync[T](String id, T content, UpsertOptions options)
         at examples.Program.Main(String[] args) in /Users/dave/Documents/CBSE-11643-UPS-null_prefix/reproducer/Program.cs:line 20
         at examples.Program.<Main>(String[] args)
      -----------------------Context Info---------------------------
      {"DispatchedFrom":"::1","DispatchedTo":"::1","DocumentKey":"key_1","ClientContextId":"35","Cas":0,"Status":0,"BucketName":"default","CollectionName":"_default","ScopeName":"_default","Message":null,"OpCode":"Set"}
      

      Steps to reproduce

      1. Compile and run CB Server with multiple nodes on the same machine - e.g.

        $ cd ns_server
        $ ./cluster_run -n2
        

      2. Setup at least 2 nodes

        ./cluster_connect -n2
        

      3. Attempt to perform some operations against the cluster where the key is not on the first node - for example reproducer from NCBC-3171.

      Attachments

        Issue Links

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

          Activity

            People

              drigby Dave Rigby (Inactive)
              drigby Dave Rigby (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty