Skip to content

Conversation

@albertzaharovits
Copy link
Contributor

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.

Backport of #130078
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
@albertzaharovits albertzaharovits self-assigned this Jul 3, 2025
@albertzaharovits albertzaharovits added >test Issues or PRs that are addressing/adding tests :Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) v9.0.4 labels Jul 3, 2025
@elasticsearchmachine elasticsearchmachine merged commit 417bf4f into elastic:9.0 Jul 3, 2025
17 checks passed
@albertzaharovits albertzaharovits deleted the backport-90-fix-125236 branch July 3, 2025 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. >test Issues or PRs that are addressing/adding tests v9.0.4

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants