refactor: close bounded recovery drain and invalidation seams

Move removed-replica drain and replica-scoped invalidation onto explicit core-command paths so the widened multi-replica runtime no longer depends on coarse host-side recovery handling.

Made-with: Cursor
This commit is contained in:
pingqiu committed 2026-04-04 11:01:12 -07:00
1 parent 5fd9ec0edf
commit 43dbebfa04
12 files changed
+751 -151

No files matched your search

+11 -2
View File
@@ -35,6 +35,14 @@ type StartRecoveryTaskCommand struct {
func (StartRecoveryTaskCommand) commandName() string { return "start_recovery_task" }
type DrainRecoveryTaskCommand struct {
VolumeID string
ReplicaID string
Reason string
}
func (DrainRecoveryTaskCommand) commandName() string { return "drain_recovery_task" }
type StartCatchUpCommand struct {
VolumeID string
ReplicaID string
@@ -52,8 +60,9 @@ type StartRebuildCommand struct {
func (StartRebuildCommand) commandName() string { return "start_rebuild" }
type InvalidateSessionCommand struct {
VolumeID string
Reason string
VolumeID string
ReplicaID string
Reason string
}
func (InvalidateSessionCommand) commandName() string { return "invalidate_session" }