Repository navigation
fix(volume): retry salvage on unreachable backends - #5537
Open
guolxingxing wants to merge 1 commit into
Open
guolxingxing wants to merge 1 commit into
guolxingxing wants to merge 1 commit into
Conversation
|
Tick the box to add this pull request to the merge queue (same as
|
Require Engine.Spec.SalvageRequested to be observed from an earlier reconciliation before automatic salvage clears Replica.Spec.FailedAt. This preserves the Replica-to-Engine CR update ordering and the existing Detached barrier. Keep the auto-salvage setting, standby and restore exclusions, node and disk filters, and the one-minute FailedAt window. EHOSTUNREACH no longer bypasses the window or promotes historical replicas that may be older than an unreachable replica containing acknowledged writes. Issue longhorn/longhorn#14662 Co-authored-by: Codex GPT-5 <noreply@openai.com> Signed-off-by: guolingxing <guolingxing@tju.edu.cn>
guolxingxing
force-pushed
the
dev/connectivity-aware-salvage
branch
from
November 27, 2026 05:47
455405c to
ff7e337
Compare
This branch has not been deployed
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.
Which issue(s) this PR fixes:
Issue longhorn/longhorn#14662
What this PR does / why we need it:
Recognize an engine startup failure reported as EHOSTUNREACH as a backend connectivity failure and enter auto-salvage even when replicas are not all marked failed.
For this connectivity-only path, previously healthy failed replicas on available nodes and disks can be retried without the ordinary one-minute FailedAt window. The failed engine is stopped after expanding the candidate set so it can restart and determine which candidate backends are actually reachable.
Special notes for your reviewer:
This PR depends on longhorn/longhorn-engine#2172 for the EHOSTUNREACH classification.
The ordinary auto-salvage path keeps its existing one-minute window and detach requirement. Auto-salvage must still be enabled, and standby or restore-required volumes remain excluded.
Additional documentation or context
N/A