fix: keep recoverable ops failures in progress#10299
Open
weicao wants to merge 1 commit into
Open
Conversation
Collaborator
|
Auto Cherry-pick Instructions |
Contributor
Author
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10299 +/- ##
==========================================
+ Coverage 52.83% 52.86% +0.03%
==========================================
Files 533 533
Lines 61213 61235 +22
==========================================
+ Hits 32343 32374 +31
+ Misses 25621 25609 -12
- Partials 3249 3252 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
403be1e to
baa2459
Compare
baa2459 to
d84aa80
Compare
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.
What happened
An Elasticsearch restart OpsRequest was marked
Failedwhile the target Pod later became Ready and the Elasticsearch cluster stayed green.The preserved evidence shows the Pod did have a real failed/waiting history during recreate:
That history should remain visible on the Pod / InstanceSet side. The bug is that restart Ops used the recoverable historical failure as an immediate terminal Ops result, even though the component had not become
Failedand the instance could still recover.Fixes #10300
Root cause
Rolling Ops progress counted a failed progress detail as completed and then finalized the whole OpsRequest as
Failedas soon as all expected instances had either succeeded or failed.That is too eager for restart-style rolling operations: a recreated Pod can have a real temporary failure signal and then become available later. If the component is still not
Failed, Ops should keep observing instead of freezing that historical failure as the final operation result.Fix
Do not change Pod failure detection.
Instead, make component Ops progress more robust:
Failed, failed progress details do not count toward completed progress;Succeed;Failed, existing terminal failure behavior is preserved.Validation
Local validation:
The new envtest covers the contract: a restart Ops with a failed progress detail stays
Runningwhile the component is stillRunning, reports2/3, and then succeeds once the instance recovers. The existing failed-component test still expects OpsFailed.Evidence boundary: the ES field occurrence is N=1. This PR fixes the deterministic Ops progress contract that turned a recoverable failure history into a terminal Ops failure. It is not a release-ready claim; ES needs fresh exact-head runtime validation after this new head is sideloaded.