-
Notifications
You must be signed in to change notification settings - Fork 286
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
Ensure no active threads in any threadpool for tests in the integrationTest package #4943
Ensure no active threads in any threadpool for tests in the integrationTest package #4943
Conversation
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Added a test that reproduces the issue |
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
@nibix This PR creates an integration test that simulates the issue found here: #4937 (comment) It occurs on a document update request: https://opensearch.org/docs/latest/api-reference/document-apis/update-document/ |
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
I'm seeing this error on the Windows runner:
|
@willyborankin The windows issues are consistently reproducible on the windows Github runners. I cannot figure out how to resolve the issue. |
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
This reverts commit b30b733. Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4943 +/- ##
==========================================
- Coverage 71.43% 71.43% -0.01%
==========================================
Files 334 334
Lines 22551 22552 +1
Branches 3590 3590
==========================================
Hits 16109 16109
- Misses 4647 4649 +2
+ Partials 1795 1794 -1
|
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.
Good catch! :)
Description
This PR adds an additional assertion on cluster stop to ensure there are no active threads in any threadpool except the management threadpool. Borrowing this idea from ISM which performs this check on test cleanup: https://github.com/opensearch-project/index-management/blob/main/src/test/kotlin/org/opensearch/indexmanagement/IndexManagementRestTestCase.kt#L358-L378
Test fix
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.