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

time of check/time of use race in data path change code of ns_server may lead to deletion of all buckets after adding node to cluster

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 3.0.2
    • 1.8.0, 1.8.1, 2.0, 2.1.0, 2.1.1, 2.2.0, 2.5.1, 2.5.0, 3.0
    • ns_server
    • Security Level: Public
    • Untriaged
    • No

    Description

      SUBJ.

      In code that changes data path we first check if node is provisioned (without preventing provision-ness to be changed after that) and the proceed with change of data path. As part of change of data path we delete buckets.

      So if node gets added to cluster after check but before data path is actually changed, we'll delete all buckets of cluster.

      As improbable as it may seem, it actually occurred in practice. See CBSE-1387.

      Attachments

        Issue Links

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

          Activity

            People

              alkondratenko Aleksey Kondratenko (Inactive)
              alkondratenko Aleksey Kondratenko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty