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

Early unlock of hashtable lock whilst still referencing StoredValue

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 6.6.6
    • 6.5.1, 6.6.0, 6.6.1, 6.6.2, 6.5.2, 6.5.0, 6.6.3, 6.6.4, 6.6.5, 7.0.0, 7.0.1, 7.0.2, 7.0.3, 7.0.4, 7.1.0, 7.1.1
    • couchbase-bucket
    • None
    • Untriaged
    • 1
    • Unknown

    Description

      Needs further investigation, but the following code shows an unlock before return, when we return from this point we will destruct the FindUpdateResult which may read any StoredValue it captured, given the lock is dropped these StoredValue could now be changed or deleted.

      https://src.couchbase.org/source/xref/6.6.3/kv_engine/engines/ep/src/vbucket.cc?r=028f229b#1631-1636

      Attachments

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

        Activity

          People

            jwalker Jim Walker
            jwalker Jim Walker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty