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

To return the regenerated CAS for SET_WITH_META / ADD_WITH_META

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Morpheus
    • 7.6.0
    • couchbase-bucket
    • None
    • Untriaged
    • 0
    • Unknown

    Description

      set/add with meta can update the CAS of a vbucket to any value - a faulty input can "poison" the max_cas of the vbucket - affecting the hybrid logical clock logic (and impacting LWW XDCR).
      KV offers two modes of protection to prevent the above

      1. Error - If the input CAS exceeds the current wall clock time by a configured threshold,KV rejects the operation and an error is returned.
      2. Replace - In this mode KV accepts the operation but the CAS is regenerated.

      Currently if the protection is set to replace mode, CAS in the response for Add/Set with meta is set to the input provided (poisoned CAS) instead of the newly generated CAS.

      Attachments

        Issue Links

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

          Activity

            People

              darshan.na Darshan NA
              darshan.na Darshan NA
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty