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

Handle instance pruning on INIT_STREAM

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Critical
    • Morpheus, 7.6.2
    • 7.6.0
    • secondary-index
    • None
    • Untriaged
    • 0
    • Unknown

    Description

      Currently, for shard rebalance, a partition index will be pruned even if it is on INIT_STREAM (MB-60521). While lifecycle manager does the pruning, indexer does not prune on INIT_STREAM as indexer has this check:

      // Only prune when source is in MAINT_STREAM or NIL_STREAM (deferred index)
      		// A index instance is pruned when some of its partition has moved during rebalance.   Rebalance can happen if
      		// there is no index build (no index on INIT_STREAM).
      		if inst.Stream != common.MAINT_STREAM && inst.Stream != common.NIL_STREAM {
      			logging.Warnf("PrunePartition: Index Instance %v is not in MAINT_STREAM or NIL_STREAM.  Do not prune now.",
      				inst.InstId)
      			return false
      		}
      

      This needs to be fixed.

      Attachments

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

        Activity

          People

            dhruvil.ketanshah Dhruvil Shah
            varun.velamuri Varun Velamuri
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty