Details
Description
.NET SDK 3.4.10 introduced the flag for SnappyEverywhere for Helo, but the actual work involved with running Snappier was not included. For servers pre-7.6.0 this was ignored and works as expected. For the combination of 3.4.10 and server 7.6.0 an AggregateException with the following message is thrown:
Bootstrapping: attempted global bootstrapping on endpoint svc-dqi-node-001.dab-ypzmf2fq07dl.nonprod-project-avengers.com:11207 has failed. {} |
System.NullReferenceException: Object reference not set to an instance of an object.
|
The reason being that the server will send back the compressed clustermap config, but the SDK will not be able to decompress the body and an internal JSON parsing error will be thrown and caught, with the NRE being the error exposed to the app layer. The specific commit that introduces the bug in NCBC-3427 (v3.4.10) and the fix is in NCBC-3414 (v3.4.11)
Note that this only occurs with .NET SDK v3.4.10 and server v7.6.0; earlier versions (3.4.9 for example) and later versions (3.4.11..for example) will work as expected.
Recommendation: do not use the Couchbase .NET SDK v3.4.10 with Couchbase Server 7.6.0 as they are incompatible.