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

System.ObjectDisposedException from load test across multiple requests

    XMLWordPrintable

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 2.7.13
    • None
    • None
    • None
    • 1

    Description

      Per discussion in forums, looks like we may need to manage concurrency with a collection a bit better in the threshold logging tracer:

      System.ObjectDisposedException: The collection has been disposed. Object name: 'BlockingCollection'. 
      at System.Collections.Concurrent.BlockingCollection`1.CheckDisposed() 
      at System.Collections.Concurrent.BlockingCollection`1.TryAddWithNoTimeValidation(T item, Int32 millisecondsTimeout, CancellationToken cancellationToken) 
      at Couchbase.Tracing.ThresholdLoggingTracer.ReportSpan(Span span) 
      at OpenTracing.Util.AsyncLocalScope.Dispose() 
      at Couchbase.Core.Buckets.CouchbaseRequestExecuter.SendWithRetryAsync[T](IOperation`1 operation, TaskCompletionSource`1 tcs, CancellationTokenSource cts) 
      at Couchbase.CouchbaseBucket.InsertAsync[T](IDocument`1 document, TimeSpan timeout) 
      at Couchbase.CouchbaseBucket.InsertAsync[T](IDocument`1 document, TimeSpan timeout)
      

      Attachments

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

        Activity

          jmorris Jeff Morris added a comment - - edited

          Moving this ticket to 2.7.15 as their are still some build-bot issues associated with the commit:

          Error Message:
          TearDown : System.ObjectDisposedException : The CancellationTokenSource has been disposed.
          Stack Trace:
          --TearDown
          at System.Threading.CancellationTokenSource.ThrowObjectDisposedException()
          at System.Threading.CancellationTokenSource.Cancel(Boolean throwOnFirstException)
          at Couchbase.Tracing.ThresholdLoggingTracer.Dispose() in /home/couchbase/jenkins/workspace/dotnet-sdk/couchbase-net-client-scripted-build-pipeline/couchbase-net-client/Src/Couchbase/Tracing/ThresholdLoggingTracer.cs:line 251
          at Couchbase.Cluster.Dispose(Boolean disposing) in /home/couchbase/jenkins/workspace/dotnet-sdk/couchbase-net-client-scripted-build-pipeline/couchbase-net-client/Src/Couchbase/Cluster.cs:line 487
          at Couchbase.Cluster.Dispose() in /home/couchbase/jenkins/workspace/dotnet-sdk/couchbase-net-client-scripted-build-pipeline/couchbase-net-client/Src/Couchbase/Cluster.cs:line 445
          at Couchbase.ClusterHelper.Close() in /home/couchbase/jenkins/workspace/dotnet-sdk/couchbase-net-client-scripted-build-pipeline/couchbase-net-client/Src/Couchbase/ClusterHelper.cs:line 371
          at Couchbase.UnitTests.ClusterHelperTests.TearDown() in /home/couchbase/jenkins/workspace/dotnet-sdk/couchbase-net-client-scripted-build-pipeline/couchbase-net-client/Src/Couchbase.UnitTests/ClusterHelperTests.cs:line 65
          X Cluster_Uses_Provided_Authenticator_When_Passed_To_Initialize [2ms]

          We'll need more time to get it merged.

          jmorris Jeff Morris added a comment - - edited Moving this ticket to 2.7.15 as their are still some build-bot issues associated with the commit: Error Message: TearDown : System.ObjectDisposedException : The CancellationTokenSource has been disposed. Stack Trace: --TearDown at System.Threading.CancellationTokenSource.ThrowObjectDisposedException() at System.Threading.CancellationTokenSource.Cancel(Boolean throwOnFirstException) at Couchbase.Tracing.ThresholdLoggingTracer.Dispose() in /home/couchbase/jenkins/workspace/dotnet-sdk/couchbase-net-client-scripted-build-pipeline/couchbase-net-client/Src/Couchbase/Tracing/ThresholdLoggingTracer.cs:line 251 at Couchbase.Cluster.Dispose(Boolean disposing) in /home/couchbase/jenkins/workspace/dotnet-sdk/couchbase-net-client-scripted-build-pipeline/couchbase-net-client/Src/Couchbase/Cluster.cs:line 487 at Couchbase.Cluster.Dispose() in /home/couchbase/jenkins/workspace/dotnet-sdk/couchbase-net-client-scripted-build-pipeline/couchbase-net-client/Src/Couchbase/Cluster.cs:line 445 at Couchbase.ClusterHelper.Close() in /home/couchbase/jenkins/workspace/dotnet-sdk/couchbase-net-client-scripted-build-pipeline/couchbase-net-client/Src/Couchbase/ClusterHelper.cs:line 371 at Couchbase.UnitTests.ClusterHelperTests.TearDown() in /home/couchbase/jenkins/workspace/dotnet-sdk/couchbase-net-client-scripted-build-pipeline/couchbase-net-client/Src/Couchbase.UnitTests/ClusterHelperTests.cs:line 65 X Cluster_Uses_Provided_Authenticator_When_Passed_To_Initialize [2ms] We'll need more time to get it merged.
          jmorris Jeff Morris added a comment -

          There are some some errors that build-bot has indicated; re-opening and assigning to myself to resolve.

          jmorris Jeff Morris added a comment - There are some some errors that build-bot has indicated; re-opening and assigning to myself to resolve.

          People

            jmorris Jeff Morris
            ingenthr Matt Ingenthron
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change

                PagerDuty