forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor KibanaThreadPoolIT/SystemIndexThreadPoolTestCase for resilie…
…ncy (elastic#108463) the in SystemIndexThreadPoolTestCase#testUserThreadPoolsAreBlocked sometimes was blocked instead of throwing an expected exception (due to a queue on a threadpool being full). IT happens that submitting a busyTask does not guarantee that it will be executed immediately by a threadpool. It might be that some other task was executing at the time This commit refactors the way threadpool is populated and makes sure that before the queue are filled, all the busyTasks are executed on threadpools based on the test failure -> elastic#107625 thread pool's threads were busy, but I cannot tell if a queue was full before the search request was submitted.
- Loading branch information
Showing
2 changed files
with
143 additions
and
123 deletions.
There are no files selected for viewing
This file contains 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
120 changes: 0 additions & 120 deletions
120
test/framework/src/main/java/org/elasticsearch/indices/SystemIndexThreadPoolTestCase.java
This file was deleted.
Oops, something went wrong.