-
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
[BUG] Wait for outstanding requests to complete in LastSuccessfulSett… #1939
Conversation
…ingsUpdate test Signed-off-by: Suraj Singh <surajrider@gmail.com>
Can one of the admins verify this patch? |
@@ -645,6 +645,14 @@ public void testShardIndexingPressureLastSuccessfulSettingsUpdate() throws Excep | |||
IndexingPressureService.class, | |||
coordinatingOnlyNode | |||
).getShardIndexingPressure().getShardIndexingPressureTracker(shardId); | |||
assertBusy( |
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.
Could you refactor this to a static helper like the following? I might make the code a bit more concise and easier to read.
private static void waitForTwoOutstandingRequests(ShardIndexingPressureTracker tracker) {
...
}
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.
Updated
…ingsUpdate test Signed-off-by: Suraj Singh <surajrider@gmail.com>
Signed-off-by: Suraj Singh <surajrider@gmail.com>
@dreamer-89 can you make sure this gets backported to 1.x? |
opensearch-project#1939) * [BUG] Wait for outstanding requests to complete in LastSuccessfulSettingsUpdate test Signed-off-by: Suraj Singh <surajrider@gmail.com> * [BUG] Wait for outstanding requests to complete in LastSuccessfulSettingsUpdate test Signed-off-by: Suraj Singh <surajrider@gmail.com>
* [Bug] Wait for outstanding requests to complete (#1925) Signed-off-by: Suraj Singh <surajrider@gmail.com> * [BUG] Wait for outstanding requests to complete in LastSuccessfulSett… (#1939) * [BUG] Wait for outstanding requests to complete in LastSuccessfulSettingsUpdate test Signed-off-by: Suraj Singh <surajrider@gmail.com> * [BUG] Wait for outstanding requests to complete in LastSuccessfulSettingsUpdate test Signed-off-by: Suraj Singh <surajrider@gmail.com>
…ingsUpdate test
Signed-off-by: Suraj Singh surajrider@gmail.com
Description
The change adds wait for outstanding requests to avoid failure due to occasional processing delays in previous requests. This change fixes the timeout issue in
testShardIndexingPressureLastSuccessfulSettingsUpdate
method. A previous fix was done fortestShardIndexingPressureEnforcedEnabledDisabledSetting
test here.Issues Resolved
1843
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.