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
Document and test SetHealthCheck's draining policy boundary #1824
The accepted contract is that SetHealthCheck stores and acknowledges the replacement policy without cancelling probes already in flight (command path). Each InFlightCheck has already captured its mode/request, timeout, status rule and thresholds (snapshot), and completion applies that captured policy after acknowledgement (completion). Only later probes use the replacement; scheduling remains relative to the existing last launch time.
This ordering is intentional, but current documentation and tests do not state it. Operators can otherwise interpret a post-ack health transition under the old thresholds as the new policy taking effect incorrectly.
A real-socket E2E prepared locally (not yet published on main) verifies acknowledgement before completion, old HTTP accepted statuses and thresholds for two existing probes, then new TCP mode and threshold for later probes:
CARGO_BUILD_JOBS=4 mise exec [email protected] -- cargo test -p sozu-e2e --locked tests::health_check_mode_tests::in_flight_probe_finishes_with_old_policy_then_future_probe_uses_new_policy -- --exact --nocapture
Document the acknowledgement/completion boundary and next-probe scheduling rule, and retain this regression. This issue does not cover backend remove/re-add incarnation safety.
Evidence scope: the policy-contract E2E used 6c3b8e89e4a713afbccbf247dbfbfccc51afd2c0; the relevant production paths were independently checked at bd19a78e2831fa9b3bc099eff96359f1bd457958 on 2026-10-03. This issue tracks lifecycle behavior and regression coverage.
Activity
fix(backends): preserve backend identity and incarnation; document Se…