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

Cas Mutate allows Decrement/Increment with invalid Cas value

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.0, 1.2 DP, 1.1
    • Fix Version/s: 1.2.0
    • Component/s: None
    • Labels:
      None

      Description

      var key = "foo" + DateTime.Now.Ticks;
      var decrementResult = client.Decrement(key, 100, 10);
      var casResult = client.GetWithCas(key);
      var result = client.Decrement(key, 100, 10, cas.Cas - 1);

      The Decrement/Increment operation will succeed, even though the Cas value was not valid for that key.

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

        Activity

        Hide
        john John Zablocki (Inactive) added a comment -

        Appears to be an issue with the server, not client.

        Show
        john John Zablocki (Inactive) added a comment - Appears to be an issue with the server, not client.
        Hide
        john John Zablocki (Inactive) added a comment -
        Show
        john John Zablocki (Inactive) added a comment - See http://www.couchbase.com/issues/browse/MB-7018 for server tracking.

          People

          • Assignee:
            john John Zablocki (Inactive)
            Reporter:
            john John Zablocki (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes