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

Error replacing dead connections on N1QL Failover rebalance

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0.0
    • 3.0.0-beta.4
    • None

    Description

      Whilst running a situational test where we perform n1ql queries and perform a failover on 1 of the 3 n1ql nodes and rebalance, there is an issue where the dead connections are not being replaced with this error message:

      fail: Couchbase.Core.IO.Connections.DataFlow.DataFlowConnectionPool[0]      Error replacing dead connections for 10.112.194.102:11210.Couchbase.Core.Exceptions.KeyValue.DocumentNotFoundException: Exception of type 'Couchbase.Core.Exceptions.KeyValue.DocumentNotFoundException' was thrown.   at Couchbase.Core.ClusterNode.ExecuteOp(Func`4 sender, IOperation op, Object state, CancellationToken token, Nullable`1 timeout) in /Users/willbroadbelt/Documents/repos/couchbase/couchbase-net-client/src/Couchbase/Core/ClusterNode.cs:line 454   at Couchbase.Core.ClusterNode.Couchbase.Core.IO.Connections.IConnectionInitializer.SelectBucketAsync(IConnection connection, String bucketName, CancellationToken cancellationToken) in /Users/willbroadbelt/Documents/repos/couchbase/couchbase-net-client/src/Couchbase/Core/ClusterNode.cs:line 526   at Couchbase.Core.IO.Connections.ConnectionPoolBase.CreateConnectionAsync(CancellationToken cancellationToken) in /Users/willbroadbelt/Documents/repos/couchbase/couchbase-net-client/src/Couchbase/Core/IO/Connections/ConnectionPoolBase.cs:line 72   at Couchbase.Core.IO.Connections.DataFlow.DataFlowConnectionPool.<>c_DisplayClass28_0.<<AddConnectionsAsync>g_StartConnection|0>d.MoveNext() in /Users/willbroadbelt/Documents/repos/couchbase/couchbase-net-client/src/Couchbase/Core/IO/Connections/DataFlow/DataFlowConnectionPool.cs:line 251--- End of stack trace from previous location where exception was thrown --   at Couchbase.Core.IO.Connections.DataFlow.DataFlowConnectionPool.AddConnectionsAsync(Int32 count, CancellationToken cancellationToken) in /Users/willbroadbelt/Documents/repos/couchbase/couchbase-net-client/src/Couchbase/Core/IO/Connections/DataFlow/DataFlowConnectionPool.cs:line 287   at Couchbase.Core.IO.Connections.DataFlow.DataFlowConnectionPool.CleanupDeadConnectionsAsync() in /Users/willbroadbelt/Documents/repos/couchbase/couchbase-net-client/src/Couchbase/Core/IO/Connections/DataFlow/DataFlowConnectionPool.cs:line 358---------------------Context Info--------------------------{{

      {"DispatchedFrom":null,"DispatchedTo":null,"DocumentKey":"default","ClientContextId":"2714","Cas":0,"Status":0,"BucketName":"default","CollectionName":null,"ScopeName":null,"Message":"KV Error: \{Name=\"KEY_ENOENT\", Description=\"Not Found\", Attributes=\"item-only\"}

      "}}}

       

      I've attached the SDK (N1QL_Failover_Rebalance.log) and sdkd (N1QL_Failover_Rebalance_SDKD.log) logs. I believe this issue occurs for other services too.

      Attachments

        Issue Links

          For Gerrit Dashboard: NCBC-2422
          # Subject Branch Project Status CR V

          Activity

            People

              jmorris Jeff Morris
              will.broadbelt Will Broadbelt
              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