Details
-
Bug
-
Resolution: Unresolved
-
Critical
-
7.6.0
-
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.