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
LoadState replay has no rollback: a poisoned saved state re-injects rejected entries forever #1313
Follow-up to #1312 (see the review discussion there).
The live AddHttpFrontend fan-out path has a unanimous-rejection rollback since #1301: compute_rollback maps AddHttpFrontend → RemoveHttpFrontend (bin/src/command/requests.rs:2117), applied on unanimous worker failure (:2642), so the main's ConfigState is reverted and no phantom route persists.
The LoadState path has none of it: LoadStateTask carries no rollback field, requests.rs:3319 dispatches each request into ConfigState before scattering, and on_finish (:3392-3446) only tallies successes/failures. A saved state containing an entry every worker rejects (e.g. a malformed frontend hostname, now answered with Failure instead of a panic since #1312) is re-injected into ConfigState on every load, re-persisted by SaveState, and re-rejected by every worker on every replay — a permanent poison with an ERROR line per worker per load.
load_static_config (:890) has the same shape.
Suggested direction: validate before dispatch on the load path (same throwaway-Router idea as the #1301 listener validation, which also covers the DomainRule parse), and/or give LoadStateTask the same rollback the live path has.
Activity
fix(command): validate http frontends before committing them to the m…
FlorentinDUBOIS commentedon Aug 28, 2026
There is an issue with loadstate currently, following those two pull requests. I need to dig in deeper to understand why I got no responses at all.
fix(command): roll back unacknowledged replay entries and bound the l…
Merge pull request #1325 from sozu-proxy/fix/load-state-rollback
ci(test): run sozu-command-lib's tests, which no workflow named
ci(test): run sozu-command-lib's tests, which no workflow named (#1540)