-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Flaky Test] Setting the response before latch countdown #13118
[Flaky Test] Setting the response before latch countdown #13118
Conversation
…es not encounter null Signed-off-by: Rajiv Kumar Vaidyanathan <rajivkv@amazon.com>
Compatibility status:Checks if related components are compatible with change cfdc6dd Incompatible componentsSkipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/flow-framework.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/performance-analyzer.git] |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13118 +/- ##
============================================
+ Coverage 71.42% 71.43% +0.01%
- Complexity 59978 60404 +426
============================================
Files 4985 5027 +42
Lines 282275 284580 +2305
Branches 40946 41215 +269
============================================
+ Hits 201603 203296 +1693
- Misses 63999 64429 +430
- Partials 16673 16855 +182 ☔ View full report in Codecov by Sentry. |
Can you please add some notes on why the current change fixed the flaky test and how did you validate this? @rajiv-kv |
Updated the description @deshsidd . I was able to reproduce this locally by introducing |
f1228e9
into
opensearch-project:main
…es not encounter null (opensearch-project#13118) Signed-off-by: Rajiv Kumar Vaidyanathan <rajivkv@amazon.com>
…es not encounter null (opensearch-project#13118) Signed-off-by: Rajiv Kumar Vaidyanathan <rajivkv@amazon.com>
Description
Fixes flaky test AdmissionForClusterManagerIT#testAdmissionControlResponseStatus
The test waits for the response on the latch
waitForResponse
. Since the latch was count down before setitng the response from the client, the waiting thread read null response causing it fail on NPERelated Issues
Resolves #13045
Check List
New functionality has been documented.New functionality has javadoc addedCommit changes are listed out in CHANGELOG.md file (See: Changelog)Public documentation issue/PR createdBy 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.