-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Retry throttled snapshot deletions #113237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
nicktindall
merged 30 commits into
elastic:main
from
nicktindall:bugfix/ES-8562_retry_unsuccessful_snapshot_deletions
Oct 15, 2024
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
b336579
Retry unsuccessful snapshot deletions
nicktindall 8ab9763
Disable AWS client retries
nicktindall 01fd52c
Update docs/changelog/113237.yaml
nicktindall 77273f8
Make delay and retries configurable, re-acquire client before each retry
nicktindall 24bfb25
Merge remote-tracking branch 'origin/main' into bugfix/ES-8562_retry_…
nicktindall 7c3d9f9
Use client-reference-per-batch, remove test for aborting on closed repo
nicktindall 17118de
Add test for retry delete count histogram
nicktindall 2773f44
Tidy
nicktindall 5b940b3
Record metrics when retries are exhausted
nicktindall 87d37bd
Merge remote-tracking branch 'origin/main' into bugfix/ES-8562_retry_…
nicktindall b70a1c9
Update changelog
nicktindall 4103273
Merge remote-tracking branch 'origin/main' into bugfix/ES-8562_retry_…
nicktindall 704c499
Merge branch 'main' into bugfix/ES-8562_retry_unsuccessful_snapshot_d…
nicktindall f8e610e
Use new BackoffPolicy package
nicktindall 53dad4b
Assert interrupt is preserved
nicktindall 52a315b
Be specific about the retries that are being aborted
nicktindall c579c56
Make S3ErrorResponse a record
nicktindall b8467af
Fix naming
nicktindall 04dd6b2
Merge remote-tracking branch 'origin/main' into bugfix/ES-8562_retry_…
nicktindall 3ed3bc4
Use linear back-off, document back-off parameters, add details to tim…
nicktindall 882d6c0
Merge remote-tracking branch 'origin/main' into bugfix/ES-8562_retry_…
nicktindall df5585e
Grammar fix(?)
nicktindall 75c4674
Update docs/reference/snapshot-restore/repository-s3.asciidoc
nicktindall f186512
Update modules/repository-s3/src/main/java/org/elasticsearch/reposito…
nicktindall e6b4940
Update modules/repository-s3/src/main/java/org/elasticsearch/reposito…
nicktindall 8868f2b
Change default for maximum delay
nicktindall c1c74e2
Update docs/reference/snapshot-restore/repository-s3.asciidoc
nicktindall ab10b44
Add test for unlimited linear backoff
nicktindall 1e207e0
Change unit for maximum delay
nicktindall 7c5a2d8
Merge remote-tracking branch 'origin/main' into bugfix/ES-8562_retry_…
nicktindall File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| pr: 113237 | ||
| summary: Retry throttled snapshot deletions | ||
| area: Snapshot/Restore | ||
| type: bug | ||
| issues: [] |
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems as though putting client settings in the repository settings like this is deprecated, and/or I've done it wrong. Any advice on how to override AWS client internal retries on a per-test basis would be appreciated.
I tried making a different client with that setting in the node settings (set at the class level), but there are a lot of additional settings configured for the
testclient that I'd need to duplicate to make that work.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It feels like the correct way to do this would be to change the client settings in
S3BlobStoreRepositoryTeststo be configured fordefaultclient, allowing them to be selectively overridden in individual tests. But that's a larger change. Perhaps there's an easier/better way?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's ok in tests, we don't have a plan for removing this apparently-deprecated functionality any time soon.