Commit Graph

1 Commits

Author SHA1 Message Date
rcourtman
0d7f2b7997 Keep failed optional PMG reads from throttling the connection
The PMG poller joined every downstream read failure (queue, mail
statistics, quarantine, backups, relay domains, domain statistics,
cluster status) into the poll error the scheduler acts on. After a
successful version read, one broken optional endpoint therefore backed
off the whole connection and, after the retry limit, moved it to the
dead-letter queue at a 30-minute interval.
Every other PMG reading then went stale, which is what #2960 hit when
the queue read stopped decoding.

Split the two. Connection, authentication, version and config failures,
and a poll cut short by its own deadline or cancellation, still drive
backoff, the circuit breaker and dead-lettering. A read that fails after
the connection succeeded is recorded as a scheduler success, so the
poll keeps its normal interval and freshness, but it stays the
connection's outstanding poll error (category "partial") until a poll
completes every read. Failed readings stay missing and alert recovery
is unchanged.

PBS already keeps its optional datastore and node-status reads out of
the scheduler outcome; a new test pins that alongside the PMG cases.

Contract-Neutral: agent-lifecycle maps internal/monitoring/monitor.go; this changes only scheduler poll-outcome bookkeeping with no host-agent lifecycle delta. The monitoring contract and its proof files are updated in this commit.
2026-10-26 10:57:56 +00:00