Skip to content

Commit 57f0423

Browse files
committed
cre-1601: comment improvement
1 parent 1e3f43b commit 57f0423

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/workflows/ring/plugin.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ func (p *Plugin) calculateNextState(priorState *pb.RoutingState, wantShards uint
218218
}, nil
219219

220220
case *pb.RoutingState_Transition:
221-
// Wait for all nodes to sync before committing to new shard assignments
221+
// Cannot commit to new routing until safety period elapses: some nodes may still
222+
// be on the prior stable state and changing routes now would cause misalignment
222223
if now.Before(ps.Transition.ChangesSafeAfter.AsTime()) {
223224
return priorState, nil
224225
}

0 commit comments

Comments
 (0)