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

shard rebalance handle DCP index to be created on shard being moved on source

    XMLWordPrintable

Details

    • Untriaged
    • 0
    • Unknown

    Description

      Consider a cluster with the following layout after rebalance -

      n1: s0-0 - idx1, idx2 (new), idx3 (new)
      n2: s0-1 - idx1 (shard repair by copying s0-0 from n1)
      n3: s0-2 - idx2 (shard repair by copying s0-0 from n1)

      In this case, rebalance can fail when we try to create idx2 and idx3 on s0 as it will locked for copy and will get unlocked once the shard token moves to Ready state. With emptyNodeBatching enabled, transition to ShardTokenReady happens only after DCP rebalance is done. Therefore, DCP rebalance would fail on source if it tries to create indexes on a shard that is being copied to destination.

      handle the same

      Attachments

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

        Activity

          People

            dhruvil.ketanshah Dhruvil Shah
            dhruvil.ketanshah Dhruvil Shah
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty