We have a very simple asp.net core application reading data from a test Couchbase server. Frequently we get exceptions when executing our queries.(stack shown below). We use latest CouchbaseNetClient 2.7.7
There are no error logs on the server. We simply follow the example given by the documentation without anything fancy.
void Open()
{
var cfg = new ClientConfiguration
{
Servers = new List { new Uri(dbpath) }
};
ClusterHelper.Initialize(cfg);
// provide authentication to cluster
ClusterHelper.Get().Authenticate(new PasswordAuthenticator(user, pwd));
_bucket = ClusterHelper.GetBucket(dbName);
EnsureIndexes(dbName);
}
List Query(stmt)
{
_bucket.Query(stmt)…
}
ERROR System.ObjectDisposedException: The collection has been disposed.
Object name: ‘BlockingCollection’.
at System.Collections.Concurrent.BlockingCollection1.CheckDisposed() at System.Collections.Concurrent.BlockingCollection
1.TryAddWithNoTimeValidation(T item, Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Couchbase.Tracing.ThresholdLoggingTracer.ReportSpan(Span span) in C:\Jenkins\workspace\dotnet\couchbase-net-client-scripted-build-pipeline\couchbase-net-client\Src\Couchbase\Tracing\ThresholdLoggingTracer.cs:line 115
at OpenTracing.Util.AsyncLocalScope.Dispose() in C:\projects\opentracing-csharp\src\OpenTracing\Util\AsyncLocalScope.cs:line 40
at Couchbase.Core.Buckets.CouchbaseRequestExecuter.SendWithRetry[T](IQueryRequest queryRequest) in C:\Jenkins\workspace\dotnet\couchbase-net-client-scripted-build-pipeline\couchbase-net-client\Src\Couchbase\Core\Buckets\CouchbaseRequestExecuter.cs:line 1026