fleetd #480 Unit E correction: retire "injectable" wording from the log lines
Both waitUntilAtTurnBoundary guard messages still said "never went idle" / "did not become injectable" — the old mental model the rename was meant to retire. Made both say what the code now actually waits for: a turn boundary (IDLE or DONE).
This commit is contained in:
@@ -283,9 +283,10 @@ public final class LeadRollover {
|
|||||||
String lead = p.leadTerminal();
|
String lead = p.leadTerminal();
|
||||||
boolean turnSettled = waitUntilAtTurnBoundary(lead, cfg.turnSettleSeconds());
|
boolean turnSettled = waitUntilAtTurnBoundary(lead, cfg.turnSettleSeconds());
|
||||||
if (!turnSettled) {
|
if (!turnSettled) {
|
||||||
log.warn("lead-rollover: pane {} never went idle within {}s after confirm() — refusing "
|
log.warn("lead-rollover: pane {} did not reach a turn boundary (IDLE or DONE) within {}s "
|
||||||
+ "to send /clear at all; the calling lead's own turn is still live and "
|
+ "after confirm() — refusing to send /clear at all; the calling lead's "
|
||||||
+ "clearing it now would destroy live context (token={})",
|
+ "own turn is still live and clearing it now would destroy live context "
|
||||||
|
+ "(token={})",
|
||||||
lead, cfg.turnSettleSeconds(), p.token());
|
lead, cfg.turnSettleSeconds(), p.token());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -296,8 +297,8 @@ public final class LeadRollover {
|
|||||||
agents.send(lead, "/clear");
|
agents.send(lead, "/clear");
|
||||||
boolean clearSettled = waitUntilAtTurnBoundary(lead, cfg.clearSettleSeconds());
|
boolean clearSettled = waitUntilAtTurnBoundary(lead, cfg.clearSettleSeconds());
|
||||||
if (!clearSettled) {
|
if (!clearSettled) {
|
||||||
log.warn("lead-rollover: pane {} did not become injectable within {}s after /clear — "
|
log.warn("lead-rollover: pane {} did not reach a turn boundary (IDLE or DONE) within {}s "
|
||||||
+ "NOT sending bootstrapText (token={})",
|
+ "after /clear — NOT sending bootstrapText (token={})",
|
||||||
lead, cfg.clearSettleSeconds(), p.token());
|
lead, cfg.clearSettleSeconds(), p.token());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user