seaweed-block: a queued rebalance carries the line it was decided against

The controller's rebalance ask now names the current line it was decided
against (ExpectCurrent), as an endpoint refresh already does. A line
published directly since, such as an operator's failover, makes the
publisher refuse the queued rebalance (ErrExpectedLineMoved) instead of
minting it over that line at the next epoch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
pingqiuandClaude Opus 5.5 committed 2026-12-05 03:37:17 -08:00
1 parent b773ffbe98
commit 6dce14b5bf
1 file changed
+4
@@ -510,6 +510,10 @@ func (c *TopologyController) decideVolume(
Intent: IntentReassign,
Evidence: plannedEvidence(target.PromotionEvidence),
Incarnation: target.Incarnation,
// Decided against the line read for this intake: a line
// published directly since (an operator's failover) refuses
// it, so a queued rebalance never overrides that line.
ExpectCurrent: &ExpectedLine{ReplicaID: currentLine.ReplicaID, Epoch: currentLine.Epoch, DataAddr: currentLine.DataAddr, CtrlAddr: currentLine.CtrlAddr},
}, "rebalance", true
}
return AssignmentAsk{}, "", false