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

[Backport 2.x] Fixing flaky org.opensearch.cluster.routing.allocation.decider.DiskThresholdDeciderIT.testHighWatermarkNotExceeded test case #4014

Merged
merged 1 commit into from
Jul 26, 2022

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 7694a27 from #4012

…resholdDeciderIT.testHighWatermarkNotExceeded test case (#4012)

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
(cherry picked from commit 7694a27)
@opensearch-trigger-bot opensearch-trigger-bot bot requested review from a team and reta as code owners July 26, 2022 15:52
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@tlfeng tlfeng added :test Adding or fixing a test backport PRs or issues specific to backporting features or enhancments v2.2.0 labels Jul 26, 2022
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@dreamer-89
Copy link
Member

dreamer-89 commented Jul 26, 2022

@reta : Can you take a look, both 989, 994 jobs failed due to testHighWatermarkNotExceeded test.

REPRODUCE WITH: ./gradlew ':server:internalClusterTest' --tests "org.opensearch.cluster.routing.allocation.decider.DiskThresholdDeciderIT.testHighWatermarkNotExceeded" -Dtests.seed=30B5259A6D582958 -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=sv-SE -Dtests.timezone=AST -Druntime.java=17

org.opensearch.cluster.routing.allocation.decider.DiskThresholdDeciderIT > testHighWatermarkNotExceeded FAILED
    java.lang.AssertionError: Mismatching shard routings: []
    Expected: a collection with size <1>
         but: collection size was <0>
        at __randomizedtesting.SeedInfo.seed([30B5259A6D582958:D994C428ED9EE0B6]:0)
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
        at org.junit.Assert.assertThat(Assert.java:964)
        at org.opensearch.cluster.routing.allocation.decider.DiskThresholdDeciderIT.lambda$assertBusyWithDiskUsageRefresh$5(DiskThresholdDeciderIT.java:362)
        at org.opensearch.test.OpenSearchTestCase.assertBusy(OpenSearchTestCase.java:1049)
        at org.opensearch.cluster.routing.allocation.decider.DiskThresholdDeciderIT.assertBusyWithDiskUsageRefresh(DiskThresholdDeciderIT.java:355)
        at org.opensearch.cluster.routing.allocation.decider.DiskThresholdDeciderIT.testHighWatermarkNotExceeded(DiskThresholdDeciderIT.java:189)****

@reta
Copy link
Collaborator

reta commented Jul 26, 2022

@reta : Can you take a look, both 989, 994 jobs failed due to testHighWatermarkNotExceeded test.

REPRODUCE WITH: ./gradlew ':server:internalClusterTest' --tests "org.opensearch.cluster.routing.allocation.decider.DiskThresholdDeciderIT.testHighWatermarkNotExceeded" -Dtests.seed=30B5259A6D582958 -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=sv-SE -Dtests.timezone=AST -Druntime.java=17

org.opensearch.cluster.routing.allocation.decider.DiskThresholdDeciderIT > testHighWatermarkNotExceeded FAILED
    java.lang.AssertionError: Mismatching shard routings: []
    Expected: a collection with size <1>
         but: collection size was <0>
        at __randomizedtesting.SeedInfo.seed([30B5259A6D582958:D994C428ED9EE0B6]:0)
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
        at org.junit.Assert.assertThat(Assert.java:964)
        at org.opensearch.cluster.routing.allocation.decider.DiskThresholdDeciderIT.lambda$assertBusyWithDiskUsageRefresh$5(DiskThresholdDeciderIT.java:362)
        at org.opensearch.test.OpenSearchTestCase.assertBusy(OpenSearchTestCase.java:1049)
        at org.opensearch.cluster.routing.allocation.decider.DiskThresholdDeciderIT.assertBusyWithDiskUsageRefresh(DiskThresholdDeciderIT.java:355)
        at org.opensearch.cluster.routing.allocation.decider.DiskThresholdDeciderIT.testHighWatermarkNotExceeded(DiskThresholdDeciderIT.java:189)****

@dreamer-89 yes, the needed change [1] was merged after this PR was created, if next build fails, I will recreate backport manually ...

[1] #4013

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@tlfeng
Copy link
Collaborator

tlfeng commented Jul 26, 2022

@reta Got it. 😂 The order to merge the PRs are critical.
While you don't have to create backport PR manually, you can checkout this branch backport/backport-4012-to-2.x locally and merge the upstream 2.x branch into this feature branch manually, and push to update the branch.

@reta
Copy link
Collaborator

reta commented Jul 26, 2022

@reta Got it. joy The order to merge the PRs are critical. While you don't have to create backport PR manually, you can checkout this branch backport/backport-4012-to-2.x locally and merge the upstream 2.x branch into this feature branch manually, and push to update the branch.

I sadly cannot push to origin :(

@tlfeng
Copy link
Collaborator

tlfeng commented Jul 26, 2022

I sadly cannot push to origin :(

Ah, thanks for telling me.. Seems I am able to do that. Alright, then re-running the PR check will be a easier way. 😄

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@reta reta merged commit 4b7bf19 into 2.x Jul 26, 2022
@github-actions github-actions bot deleted the backport/backport-4012-to-2.x branch July 26, 2022 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport PRs or issues specific to backporting features or enhancments :test Adding or fixing a test v2.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants