Details
-
Bug
-
Resolution: Fixed
-
Major
-
3.2.6
-
None
-
None
-
1
Description
From forums: https://forums.couchbase.com/t/net-v3-2-x-sdk-usage-of-getanyreplicaasync/32673
We’re upgrading to the 3.2.x SDK and encountered an issue with the GetAnyReplicaAsync method (I didn’t check GetAllReplicaAsync).
So this throws ArgumentNullExceptionevery time it’s called after auto-failover event. This is the stack trace:
\nStackTrace:\nInner Exception:\n\nValue cannot be null. (Parameter ‘endPoint’)\nType: System.ArgumentNullException\nSource: Couchbase.NetClient\nTargetSite: Void ThrowArgumentNullException(System.String)\nStackTrace:\n at Couchbase.Utils.ThrowHelper.ThrowArgumentNullException(String paramName)\n at Couchbase.CouchbaseBucket.SendAsync(IOperation op, CancellationTokenPair tokenPair)\n at Couchbase.Core.Retry.RetryOrchestrator.RetryAsync(BucketBase bucket, IOperation operation, CancellationTokenPair tokenPair)\n at Couchbase.KeyValue.CouchbaseCollection.GetReplica(String id, Int16 index, IRequestSpan span, CancellationToken cancellationToken, ITranscoderOverrideOptions options)\n at Couchbase.KeyValue.CouchbaseCollection.GetAnyReplicaAsync(String id, GetAnyReplicaOptions options)\n
Note this doesn’t occur before auto-failover, only after this. I think this is very similar to the related issue in the v2.7.x SDK .net 2.7.X NullReferenceException encountered on GetDocumentFromReplicaAsync<T>
Attachments
For Gerrit Dashboard: NCBC-3091 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
170145,5 | NCBC-3091: NRE GetDocumentFromReplicaAsync when EndPoint is null v3.2.X | master | couchbase-net-client | Status: MERGED | +2 | +1 |