-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Fix SnapshotMetricsIT race conditions #132780
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 15 commits into
elastic:main
from
nicktindall:alt_fix_snapshot_metrics_it
Aug 20, 2025
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
d73d299
Fix SnapshotMetricsIT race conditions
nicktindall 2c66600
Increase throttling
nicktindall f034e1d
Test throttle metrics separately
nicktindall 23497d4
Increase byte_per_sec, don't verify on create/update repo, add loggin…
nicktindall 8a71043
Merge remote-tracking branch 'origin/main' into alt_fix_snapshot_metr…
nicktindall e7722b2
Merge remote-tracking branch 'origin/main' into alt_fix_snapshot_metr…
nicktindall 62f1935
Don't verify repository when turning off restore throttling
nicktindall ca43178
Fix the last(?) race condition
nicktindall db4d5c6
Uuurgh
nicktindall a57ddb4
Merge remote-tracking branch 'origin/main' into alt_fix_snapshot_metr…
nicktindall 0a0b09a
Remove remnants of project_id label
nicktindall a397141
Increase size of index to ensure upload takes time
nicktindall 48ed1e5
Try and fix upload duration flappiness
nicktindall 4dbe2ce
Use ofKb instead of ofBytes
nicktindall 37a4c91
Merge remote-tracking branch 'origin/main' into alt_fix_snapshot_metr…
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
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
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.
I think if we wait for the response to be received that should mean the metrics should be written? (note
waitForCompletion=trueabove now)I'm running in a loop to try and confirm that now
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.
This introduced a source of flakiness in the tension between the throttling and
safeGet. If the setting was too high, we exceeded thesafeGettimeout, if the setting was too low, we didn't see any throttling.For this reason I've moved out the test for the throttling metrics to another test. It has more complexity to ensure we see throttling and we don't run too long.