-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Fix ThreadPoolMergeSchedulerTests testSchedulerCloseWaitsForRunningMerge #130078
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
Fix ThreadPoolMergeSchedulerTests testSchedulerCloseWaitsForRunningMerge #130078
Conversation
|
Pinging @elastic/es-distributed-indexing (Team:Distributed Indexing) |
henningandersen
left a comment
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.
Looks good, though it looks like this PR contains excess changes?
muted-tests.yml
Outdated
| - class: org.elasticsearch.packaging.test.DockerTests | ||
| method: test081SymlinksAreFollowedWithEnvironmentVariableFiles | ||
| issue: https://github.com/elastic/elasticsearch/issues/128867 | ||
| - class: org.elasticsearch.index.engine.ThreadPoolMergeExecutorServiceDiskSpaceTests |
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 looks out-of-place for this PR?
| aFileStore.totalSpace = randomLongBetween(1L, 100L); | ||
| bFileStore.usableSpace = randomLongBetween(1L, 100L); | ||
| bFileStore.totalSpace = randomLongBetween(1L, 100L); | ||
| long aUsableSpace; |
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 also looks like it belongs somewhere else? Maybe I reviewed this part in another PR already, looks familiar but did not check. Maybe once that is merged, this change disappears?
Oh boy, I've mixed up branches, I've got several things in-flight. Will address momentarily. |
This reverts commit 47a3055.
|
@henningandersen I've reverted the stray commit on this PR branch. |
henningandersen
left a comment
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.
LGTM.
|
@elasticsearchmachine run elasticsearch-ci/part-3 |
💔 Backport failed
You can use sqren/backport to manually backport by running |
…rge (elastic#130078) This fixes a race condition in the test scenario, between the merge scheduler closing and the merge task being scheduled to run. The test scenario expects that the merge task runs when the scheduler is closed. If the merge scheduler is closed before the merge task is scheduled, the merge task will instead be scheduled as aborted. Fixes: elastic#125236
…rge (#130078) (#130132) This fixes a race condition in the test scenario, between the merge scheduler closing and the merge task being scheduled to run. The test scenario expects that the merge task runs when the scheduler is closed. If the merge scheduler is closed before the merge task is scheduled, the merge task will instead be scheduled as aborted. Fixes: #125236
…rge (elastic#130078) This fixes a race condition in the test scenario, between the merge scheduler closing and the merge task being scheduled to run. The test scenario expects that the merge task runs when the scheduler is closed. If the merge scheduler is closed before the merge task is scheduled, the merge task will instead be scheduled as aborted. Fixes: elastic#125236
…rge (#130078) (#130529) This fixes a race condition in the test scenario, between the merge scheduler closing and the merge task being scheduled to run. The test scenario expects that the merge task runs when the scheduler is closed. If the merge scheduler is closed before the merge task is scheduled, the merge task will instead be scheduled as aborted. Fixes: #125236
…rge (elastic#130078) This fixes a race condition in the test scenario, between the merge scheduler closing and the merge task being scheduled to run. The test scenario expects that the merge task runs when the scheduler is closed. If the merge scheduler is closed before the merge task is scheduled, the merge task will instead be scheduled as aborted. Fixes: elastic#125236
…rge (elastic#130078) This fixes a race condition in the test scenario, between the merge scheduler closing and the merge task being scheduled to run. The test scenario expects that the merge task runs when the scheduler is closed. If the merge scheduler is closed before the merge task is scheduled, the merge task will instead be scheduled as aborted. Fixes: elastic#125236
…rge (#130078) (#130565) This fixes a race condition in the test scenario, between the merge scheduler closing and the merge task being scheduled to run. The test scenario expects that the merge task runs when the scheduler is closed. If the merge scheduler is closed before the merge task is scheduled, the merge task will instead be scheduled as aborted. Fixes: #125236
This fixes a race condition in the test scenario, between the merge scheduler closing and the merge task being scheduled to run. The test scenario expects that the merge task runs when the scheduler is closed. If the merge scheduler is closed before the merge task is scheduled, the merge task will instead be scheduled as aborted.
Fixes: #125236