Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-33854

[6.0.2] - Memcached returns NOT_STORED to client after trying to perform arithmetic operation

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.5.0, 5.5.0, 5.5.3, 6.0.1
    • 6.0.2
    • memcached
    • Untriaged
    • Yes

    Description

      [Cloned this from MB-33813 to track merging a fix for this issue to 6.0.2.]

      There is a race condition in ArithmeticCommandContext where a SET operation is performed between the ArithmeticCommandContext::getItem() and ArithmeticCommandContext::storeNewItem(), causing the call to bucket_store() to return ENGINE_NOT_STORED. Currently we just return this error to the memcached client however, this brakes the behaviour of this interface that existed before the refactoring of our arithmetic operations (see v4.5.0). Thus, we should resolve this race condition by trying to re-perform the arithmetic operation by resetting the ArithmeticCommandContext state machine.

      Attachments

        Issue Links

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

          Activity

            Build couchbase-server-6.5.0-3032 contains kv_engine commit f4395e1 with commit message:
            MB-33854: Merge remote-tracking branch 'couchbase/vulcan' into alice

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-3032 contains kv_engine commit f4395e1 with commit message: MB-33854 : Merge remote-tracking branch 'couchbase/vulcan' into alice

            Marking resolved as the fix for this has been merged into couchbase/alice at f4395e12751036f84c87f8a2bab979db7f6e05b3.

            richard.demellow Richard deMellow added a comment - Marking resolved as the fix for this has been merged into couchbase/alice at f4395e12751036f84c87f8a2bab979db7f6e05b3 .

            Build couchbase-server-6.0.2-2365 contains kv_engine commit f4395e1 with commit message:
            MB-33854: Merge remote-tracking branch 'couchbase/vulcan' into alice

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.0.2-2365 contains kv_engine commit f4395e1 with commit message: MB-33854 : Merge remote-tracking branch 'couchbase/vulcan' into alice

            People

              richard.demellow Richard deMellow
              richard.demellow Richard deMellow
              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