Skip to content
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

Add a latch to sync when all max upload tasks have been submitted #101203

Merged
merged 3 commits into from
Oct 23, 2023

Conversation

arteam
Copy link
Contributor

@arteam arteam commented Oct 23, 2023

Before we check the amount of active tasks on the prewarming executor, we need to verify that all the tasks have been actually submitted.

Otherwise, we have a race in and amount of active tasks can be lower then the amount of submitted tasks.

Fixes #99124

Before we check the amount of active tasks on the prewarming executor,
we need to verify that all the tasks have been actually submitted.

Otherwise, we have a race in and amount of active tasks can be lower
then the amount of submitted tasks.

Fixes elastic#99124
@arteam arteam added >test Issues or PRs that are addressing/adding tests :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs labels Oct 23, 2023
@elasticsearchmachine elasticsearchmachine added Team:Distributed Meta label for distributed team (obsolete) v8.12.0 labels Oct 23, 2023
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

arteam and others added 2 commits October 23, 2023 11:25
…a/org/elasticsearch/xpack/searchablesnapshots/cache/full/SearchableSnapshotsPrewarmingIntegTests.java

Co-authored-by: David Turner <[email protected]>
…a/org/elasticsearch/xpack/searchablesnapshots/cache/full/SearchableSnapshotsPrewarmingIntegTests.java

Co-authored-by: David Turner <[email protected]>
Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@arteam
Copy link
Contributor Author

arteam commented Oct 23, 2023

Thank you David!

@arteam arteam merged commit 13bf223 into elastic:main Oct 23, 2023
12 checks passed
@arteam arteam deleted the fix-test-concurrent-prewarming branch October 23, 2023 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs Team:Distributed Meta label for distributed team (obsolete) >test Issues or PRs that are addressing/adding tests v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] SearchableSnapshotsPrewarmingIntegTests testConcurrentPrewarming failing
3 participants