Details
-
Bug
-
Resolution: Fixed
-
Major
-
3.0.0-beta.2
-
None
-
None
Description
Unable to do a number of query operations on different services i.e. View, Query, Search Analytics. An example of this failure is this QueryManager integration test running a QueryAsync function:
X Couchbase.IntegrationTests.Services.Query.QueryManagerTests.Test_QueryManager [85ms]
|
Error Message:
|
System.NullReferenceException : Object reference not set to an instance of an object.
|
Stack Trace:
|
at Couchbase.Core.ClusterNode.get_HasQuery() in /data/workspace/dotnet-sdk/couchbase-net-client-scripted-build-pipeline/couchbase-net-client/src/Couchbase/Core/ClusterNode.cs:line 90 |
at Couchbase.Core.ClusterContext.<>c.<GetRandomNodeForService>b__31_1(IClusterNode x) in /data/workspace/dotnet-sdk/couchbase-net-client-scripted-build-pipeline/couchbase-net-client/src/Couchbase/Core/ClusterContext.cs:line 90 |
at System.Linq.Enumerable.WhereEnumerableIterator`1.ToList() |
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) |
at Couchbase.Utils.ArrayExtensions.GetRandom[T](IEnumerable`1 enumerable, Func`2 whereClause) in /data/workspace/dotnet-sdk/couchbase-net-client-scripted-build-pipeline/couchbase-net-client/src/Couchbase/Utils/ArrayExtensions.cs:line 62 |
at Couchbase.Core.ClusterContext.GetRandomNodeForService(ServiceType service, String bucketName) in /data/workspace/dotnet-sdk/couchbase-net-client-scripted-build-pipeline/couchbase-net-client/src/Couchbase/Core/ClusterContext.cs:line 90 |
at Couchbase.Query.QueryClient.ExecuteQuery[T](QueryOptions options, IDataMapper dataMapper) in /data/workspace/dotnet-sdk/couchbase-net-client-scripted-build-pipeline/couchbase-net-client/src/Couchbase/Query/QueryClient.cs:line 116 |
at Couchbase.Query.QueryClient.QueryAsync[T](String statement, QueryOptions options) in /data/workspace/dotnet-sdk/couchbase-net-client-scripted-build-pipeline/couchbase-net-client/src/Couchbase/Query/QueryClient.cs:line 56 |
at Couchbase.Management.Query.QueryIndexManager.DropPrimaryIndexAsync(String bucketName, DropPrimaryQueryIndexOptions options) in /data/workspace/dotnet-sdk/couchbase-net-client-scripted-build-pipeline/couchbase-net-client/src/Couchbase/Management/Query/QueryIndexManger.cs:line 112 |
at Couchbase.IntegrationTests.Services.Query.QueryManagerTests.Test_QueryManager() in /data/workspace/dotnet-sdk/couchbase-net-client-scripted-build-pipeline/couchbase-net-client/tests/Couchbase.IntegrationTests/Services/Query/QueryManagerTests.cs:line 53 |
— End of stack trace from previous location where exception was thrown —
|
|
More examples of these failures are recorded in the console logs of this job, by searching for GetRandomNodeForService: http://sdk.jenkins.couchbase.com/job/dotnet-sdk/job/couchbase-net-client-scripted-build-pipeline/1715/consoleFull
These errors are possibly related to NCBC-2190.