Description
When using Couchbase Server 5.x, and you get a lock related error, the Status filed is set of "Failure" (-3) and the Exception field is set to null.
You can reproduce with the following code:
var cluster = new Cluster(new ClientConfiguration |
{
|
Servers = new List<Uri> { new Uri("http://10.111.175.101") } |
});
|
|
var authenticator = new PasswordAuthenticator("user", "password"); |
cluster.Authenticate(authenticator);
|
var bucket = cluster.OpenBucket("test"); |
|
dynamic attempt1 = bucket.GetAndLock<dynamic>("12345", TimeSpan.FromSeconds(10)); |
dynamic attempt2 = bucket.GetAndLock<dynamic>("12345", TimeSpan.FromSeconds(10)); |
attempt2 above should be the "bad" result.
Attachments
Issue Links
- relates to
-
NCBC-1500 SDKs must translate LOCKED status code to existing Errors.
-
- Resolved
-