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
Unanimous-rejection rollback is skipped on scatter timeout, committing the rejected entry permanently #1314
Follow-up to #1312 (see the review discussion there).
The #1301 rollback only runs when the scatter completed: the guard at bin/src/command/requests.rs:2636-2640 skips it when timed_out is set, and the scatter uses Timeout::Default (:2460).
Concrete failure: during a rolling upgrade, a worker still running a pre-#1312 build receives a malformed frontend hostname and panics instead of answering. The scatter times out waiting for it, the rollback is skipped, and the malformed entry stays committed in the main's ConfigState — from where it is replayed to every restarted worker and persisted by SaveState. One unpatched worker is enough to convert a transient rejection into permanent state poisoning.
Mixed results (some Ok, some Failure) have the related question of which side the state should land on, but the timeout case is the sharp edge: the workers that DID answer were unanimous rejections.
Suggested direction: treat timed_out + zero Ok responses like unanimous rejection for rollback purposes, or validate before dispatch so the malformed entry never enters ConfigState at all (same direction as the LoadState issue).
Activity
fix(command): roll back a fanned-out change when the scatter times ou…
fix(command): roll back a fanned-out change when the scatter times ou…
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)