Skip to content

fix(runtime): retry maintenance shutdown on ambiguous ACK loss - #324

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
feat/shutdown-maintenance-ambiguous-retry
Sep 12, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
feat/shutdown-maintenance-ambiguous-retry

Conversation

@ZhiXiao-Lin

@ZhiXiao-Lin ZhiXiao-Lin commented Sep 12, 2026 •

Copy link
Copy Markdown

Summary

  • Share a single ControlAckAttempt / control_ack_with_ambiguous_retry path for signal_main and shutdown_rootfs_maintenance.
  • Connect failures stay Ok(false) with no retry; write/ACK timeout/closed retries once on a fresh stream.
  • Guest already ACKs repeat shutdown while SHUTTING_DOWN (IDLE→SHUTTING_DOWN or already shutting down), so retry is naturally idempotent and avoids false-negative shim force-teardown.

Honesty

  • Does not retry spawn_main (not idempotent without observe-before-retry).
  • Does not flip b2_process_session_recovery_closed.
  • Does not claim fixture continuity or hosted-KVM Live.

Test plan

  • Local cargo check -p a3s-box-runtime --features vm
  • WSL shutdown_rootfs_maintenance + signal_main unit tests (4 passed)
  • Hosted CI green (prefer rerun on R17 flake; do not weaken schemas)

Share control-ACK Ambiguous/NotReached with signal_main. Guest already ACKs
repeat shutdown while SHUTTING_DOWN, so one fresh-stream retry avoids
false-negative shim teardown without request ids or spawn_main/B2 flips.
@ZhiXiao-Lin
ZhiXiao-Lin merged commit 50c8aa8 into main Sep 12, 2026
14 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the feat/shutdown-maintenance-ambiguous-retry branch September 12, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant