Skip to content
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

Merged
merged 3 commits into from
Jan 20, 2022

Conversation

dreamer-89
Copy link
Member

…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 for testShardIndexingPressureEnforcedEnabledDisabledSetting test here.

Issues Resolved

1843

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

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.

…ingsUpdate test

Signed-off-by: Suraj Singh <surajrider@gmail.com>
@dreamer-89 dreamer-89 requested a review from a team as a code owner January 19, 2022 17:29
@opensearch-ci-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success d2d9490
Log 1986

Reports 1986

@@ -645,6 +645,14 @@ public void testShardIndexingPressureLastSuccessfulSettingsUpdate() throws Excep
IndexingPressureService.class,
coordinatingOnlyNode
).getShardIndexingPressure().getShardIndexingPressureTracker(shardId);
assertBusy(
Copy link
Member

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) {
...
}

Copy link
Member Author

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>
@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success 4c1b2d5
Log 2009

Reports 2009

@andrross andrross merged commit 27e05cc into opensearch-project:main Jan 20, 2022
@andrross
Copy link
Member

@dreamer-89 can you make sure this gets backported to 1.x?

@owaiskazi19 owaiskazi19 added the pending backport Identifies an issue or PR that still needs to be backported label Jan 20, 2022
dreamer-89 added a commit to dreamer-89/OpenSearch that referenced this pull request Jan 21, 2022
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>
@dreamer-89 dreamer-89 mentioned this pull request Jan 21, 2022
5 tasks
andrross pushed a commit that referenced this pull request Jan 21, 2022
* [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>
@andrross andrross removed the pending backport Identifies an issue or PR that still needs to be backported label Jan 25, 2022
@dreamer-89 dreamer-89 deleted the timeout branch December 14, 2022 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants