-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Fix deadlock in ThreadPoolMergeScheduler when a failing merge closes the IndexWriter #134656
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
Merged
Changes from 31 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
e55f472
reproducer
tlrx a48b071
possible fix
tlrx 877bbc6
Update docs/changelog/134656.yaml
tlrx d38acd9
[CI] Auto commit changes from spotless
bc6c302
Merge branch 'main' into 2025/09/09/ES-12664
tlrx 12f5597
nit
tlrx 1aed9d2
nit
tlrx 6d900ac
nit
tlrx a0dbc8c
[CI] Auto commit changes from spotless
adce7eb
nit
tlrx a332f74
nit
tlrx e613990
Merge branch '2025/09/09/ES-12664' of github.com:tlrx/elasticsearch i…
tlrx 7781abf
nit
tlrx a9f15cd
Merge branch 'main' into 2025/09/09/ES-12664
tlrx 596cd62
Merge branch 'main' into 2025/09/09/ES-12664
tlrx e12c711
Merge branch 'main' into 2025/09/09/ES-12664
tlrx bf0790e
Merge branch 'main' into 2025/09/09/ES-12664
tlrx 4ac38b2
Merge branch 'main' into 2025/09/09/ES-12664
tlrx ec0d6bb
Merge branch 'main' into 2025/09/09/ES-12664
tlrx 37a3d9b
suppress exception
tlrx 4d38ecc
fix spin loop
tlrx 0eae7ac
remove synchronized block
tlrx ae99d45
fix test
tlrx 3218f7f
Merge branch 'main' into 2025/09/09/ES-12664
tlrx cfc4009
Merge branch 'main' into 2025/09/09/ES-12664
tlrx 97105b4
feedback
tlrx 742dd09
assertTrue
tlrx d3e083d
latch
tlrx 555a846
closedWithNoRunningMerges
tlrx 7eae1cc
[CI] Auto commit changes from spotless
3f6c734
Merge branch 'main' into 2025/09/09/ES-12664
tlrx 5bd52a4
rarely close
tlrx 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,6 @@ | ||
pr: 134656 | ||
summary: Fix deadlock in `ThreadPoolMergeScheduler` when a failing merge closes the | ||
`IndexWriter` | ||
area: Engine | ||
type: bug | ||
issues: [] |
411 changes: 411 additions & 0 deletions
411
server/src/internalClusterTest/java/org/elasticsearch/index/engine/MergeWithFailureIT.java
Large diffs are not rendered by default.
Oops, something went wrong.
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.