Drop local caches and reload settings when the coordinator comes back #176

Merged
jcoffey-dev merged 1 commits from fix/caches-on-reconnect into main 2026-10-08 22:31:17 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev 5344615845 Drop local caches and reload settings when the coordinator comes back
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 8m26s
Core NATS delivers at most once. While a node's connection is down the
client reconnects by itself and subscribes again, but whatever the
cluster published meanwhile never arrives, and the account, token,
role, domain and DAV caches only ever change on those events, so they
stayed stale until a restart; a missed registry change left the running
settings stale the same way.

The NATS backend now counts reconnections on a watch. The broadcast
subscriber drops every local cache and reloads the settings,
certificates and blocked addresses on each one, and after subscribing
again when its stream ended. The message caches check the change log
on every use and need nothing.
2026-10-08 14:34:42 -07:00