-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Prevent starvation bug if using scaling EsThreadPoolExecutor with core pool size = 0 #124732
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 23 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
c01a600
Reproduction by DCT
mosche ab05173
Use new EsExecutors.newSingleScalingToZero for masterService#updateTa…
mosche a59bdc7
increase min core size for various test executors from 0 to 1
mosche 090e104
Improve validation in ScalingExecutorBuilder and use newSingleScaling…
mosche 6ce4fb7
Don't allow EsExecutors.newScaling for min=0 / max=1 to not risk star…
mosche 59ccab1
Update docs/changelog/124732.yaml
mosche 5b9be6c
remove newSingleScalingToZero / usage of allowCoreThreadTimeOut
mosche 77a44bb
Update docs/changelog/124732.yaml
mosche b7ff07d
revert obsolete changes
mosche 7954b6b
revert obsolete changes
mosche 8fe724c
fix rawtype
mosche 3d9e590
reduce noisy test logger to trace
mosche 7607e52
add Java docs
mosche dd33e6d
fix test timeouts
mosche 30d4a50
Implement worker pool probing to prevent #124667 if max pool size > 1.
mosche 3279628
fix thread pool configuration in testSlicingBehaviourForParallelColle…
mosche b77ea90
deterministic search pool size in SearchServiceSingleNodeTests
mosche 0bf9c96
Merge branch 'main' into ktlo/esExecutorBug
mosche 5bf3b12
changelog
mosche 1f4fb2d
rename worker probe, add comment
mosche a831436
more java docs
mosche bd2eac8
more java docs
mosche d53d5c3
Merge branch 'main' into ktlo/esExecutorBug
mosche 48364c6
add comment
mosche 0f1f95d
PR comments
mosche 97fefa6
PR comments
mosche 19d1765
Merge branch 'main' into ktlo/esExecutorBug
mosche 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: 124732 | ||
| summary: Prevent rare starvation bug when using scaling `EsThreadPoolExecutor` with empty core pool size. | ||
| area: Infra/Core | ||
| type: bug | ||
| issues: | ||
| - 124667 |
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
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.