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

Fix tombstone instance cleanup during bootstrap for deferred indexes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Critical
    • Morpheus
    • 7.1.0
    • secondary-index
    • None
    • Untriaged
    • 1
    • Unknown

    Description

      Steps:

      The panic/indexer restart is introduced in indexer:mergePartition function, just before sending MsgClustMgrMergePartition message to the manager.

      1. Create 1 node cluster. n1ql, kv, index.
      2. Create a partitioned index with 2 partitions - deferred build = true.
      3. Add an indexer node.
      4. Rebalance. One of the partitions will be moved to the new node. This will create a tombstone instance on the first node.
      5. Remove the new node from the cluster and rebalance again.
      6. During rebalance, the partition will move back to the first node. Merge partition will start, but due to panic, it will fail.
      7. Indexer will be restarted and the message Storage corrupted and unrecoverable will be seen in the logs.

      The fix for MB-51025 doesn't work for deferred indexes as the deferred indexes have state "INDEX_STATE_READY" which is not considered a valid recovery state.

      More analysis is required to handle this scenario. CC Deepkaran Salooja

      Attachments

        Issue Links

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

          Activity

            People

              amit.kulkarni Amit Kulkarni
              amit.kulkarni Amit Kulkarni
              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