Details
-
Bug
-
Resolution: Incomplete
-
Major
-
None
-
3.1.7, 3.2.0
-
None
-
1
Description
when calling IncrementAsync from the DefaultCollection on a 6.6 couchbase community edition server, the Content value of the result is always 0.
below is an example of the code written in a test application. The Client is an INamedBucketProvider that has been configured with the DependencyInjection library. Other bucket operations seem to be working normally.
var bucket = await Client.GetBucketAsync().ConfigureAwait(false); |
var collection = await bucket.DefaultCollectionAsync().ConfigureAwait(false); |
for (int i = 0; i < 10; i++) |
{
|
var counterValue = await collection.Binary.IncrementAsync("test-increment-counter", |
new IncrementOptions().Expiry(TimeSpan.FromMinutes(1))) |
.ConfigureAwait(false); |
Console.WriteLine($"Counter Value: {counterValue.Content}"); |
}
|
The value of content is always 0 in this case.