You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
restart_agent corrupts the health monitor heartbeat anchor, and the peer-progress gate then hides it #3605
After restart_agent, the health monitor reports an impossible elapsed time for the restarted role, and the resulting alert is suppressed by the peer-progress gate, so an agent that does not exist produces no alert.
Evidence
After restarting task_planner on issue-3596-v2, the orchestrator logged repeatedly:
1784944189 seconds is roughly 56 years: a Unix epoch timestamp being used as a duration, i.e. last_heartbeat was reset to 0 and now - 0 reported as elapsed.
At the same time the role had no pod and no Job (see #3597) while pipeline state reported it running with container_id: null. The alert was suppressed anyway by _has_recent_peer_progress because a DIFFERENT agent had heartbeated 4 seconds earlier.
Why it matters
This is the most extreme instance of #3595 root cause 1. The gate indefinitely suppressed an alert about an agent that did not exist, whose timer was visibly corrupt. Two independent defects (a corrupt anchor, a dependency-blind gate) combined so that the monitoring which should catch a failed restart is structurally deaf to it.
Suggested fix
On restart, either clear the agent's health state entirely so it is treated as never-seen, or set last_heartbeat to the restart time rather than 0.
Separately, an impossible elapsed value (greater than pipeline age) should be treated as a bug signal and surfaced, not silently gated.
The dependency-blind gate itself is tracked in #3595 root cause 2 / #3596 slice 3.
Activity
health_monitor: document progress-guard defensiveness and wall-clock …
Merge pull request #3612 from jwbron/egg/issue-3605-heartbeat-anchor