Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-2943

3.1.7 IBinaryCollection IncrementAsync

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Major
    • None
    • 3.1.7, 3.2.0
    • library
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jmorris Jeff Morris
            smitcham Steven Mitcham
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty