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

Don't increment session CAS counter when CAS counter is 0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • backlog
    • 5.0.0
    • ns_server
    • None
    • Untriaged
    • Unknown

    Description

      ns_server is implementing the ns_server side of the "session CAS / control token" piece. See the work in-flight here: http://review.couchbase.org/#/c/67721. (It's not quite ready for merge.)

      ns_server's understanding was that a control token / CAS of zero meant that the command was not to be subject to session CAS validation – and in particular a CAS value of zero is used for the potentially long running compact_vbucket command.

      However, in memcached a session CAS of 0 is treated as a special value that increments the CAS counter regardless of the actual CAS value.

      What this means is that ns_server may want to reset a control token / CAS value while a compact vbucket command is running and it may have to wait for a potentially extended period to issue an important control command.

      It would be good if we can come up with a way to allow commands such as compact_vbucket to be able to be executed not subject to session CAS validation.

      Attachments

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

        Activity

          People

            dfinlay Dave Finlay
            dfinlay Dave Finlay
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty