Repository navigation
fix(runtime): retry maintenance shutdown on ambiguous ACK loss - #324
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ControlAckAttempt/control_ack_with_ambiguous_retrypath forsignal_mainandshutdown_rootfs_maintenance.Ok(false)with no retry; write/ACK timeout/closed retries once on a fresh stream.SHUTTING_DOWN(IDLE→SHUTTING_DOWNor already shutting down), so retry is naturally idempotent and avoids false-negative shim force-teardown.Honesty
spawn_main(not idempotent without observe-before-retry).b2_process_session_recovery_closed.Test plan
cargo check -p a3s-box-runtime --features vmshutdown_rootfs_maintenance+signal_mainunit tests (4 passed)