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] Flaky test failure - org.opensearch.blocks.SimpleBlocksIT > testAddBlockWhileDeletingIndices #2442

Closed
tlfeng opened this issue Mar 11, 2022 · 1 comment
Assignees
Labels
bug Something isn't working flaky-test Random test failure that succeeds on second run

Comments

@tlfeng
Copy link
Collaborator

tlfeng commented Mar 11, 2022

Describe the bug
Seen in #2438 (comment)

Gradle run result:
Log 3254
Reports 3254
To Reproduce
I can't reproduce it locally. 🙂
The below shows in the log of Gradle check.

> Task :server:internalClusterTest

REPRODUCE WITH: ./gradlew ':server:internalClusterTest' --tests "org.opensearch.blocks.SimpleBlocksIT.testAddBlockWhileDeletingIndices" -Dtests.seed=EF2BD3D9D42CE8CA -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=ar-LB -Dtests.timezone=Asia/Manila -Druntime.java=17

org.opensearch.blocks.SimpleBlocksIT > testAddBlockWhileDeletingIndices FAILED
    com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=732, name=Thread-16, state=RUNNABLE, group=TGRP-SimpleBlocksIT]

        Caused by:
        java.lang.AssertionError: 
        Expected: an instance of org.opensearch.index.IndexNotFoundException
             but: <ProcessClusterEventTimeoutException[failed to process cluster event (delete-index [[glwvxoqqaa/i2W7ssjoTUeQ4iwAk6ARBQ]]) within 30s]> is a org.opensearch.cluster.metadata.ProcessClusterEventTimeoutException
            at __randomizedtesting.SeedInfo.seed([EF2BD3D9D42CE8CA]:0)
            at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
            at org.junit.Assert.assertThat(Assert.java:964)
            at org.junit.Assert.assertThat(Assert.java:930)
            at org.opensearch.blocks.SimpleBlocksIT.lambda$testAddBlockWhileDeletingIndices$14(SimpleBlocksIT.java:483)
            at org.opensearch.blocks.SimpleBlocksIT.lambda$testAddBlockWhileDeletingIndices$15(SimpleBlocksIT.java:498)

    com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=734, name=Thread-18, state=RUNNABLE, group=TGRP-SimpleBlocksIT]

        Caused by:
        java.lang.AssertionError: 
        Expected: an instance of org.opensearch.index.IndexNotFoundException
             but: <ProcessClusterEventTimeoutException[failed to process cluster event (delete-index [[pfoumeuzfk/SuaajRD-SWqAsgyGa_h31Q]]) within 30s]> is a org.opensearch.cluster.metadata.ProcessClusterEventTimeoutException
            at __randomizedtesting.SeedInfo.seed([EF2BD3D9D42CE8CA]:0)
            at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
            at org.junit.Assert.assertThat(Assert.java:964)
            at org.junit.Assert.assertThat(Assert.java:930)
            at org.opensearch.blocks.SimpleBlocksIT.lambda$testAddBlockWhileDeletingIndices$14(SimpleBlocksIT.java:483)
            at org.opensearch.blocks.SimpleBlocksIT.lambda$testAddBlockWhileDeletingIndices$15(SimpleBlocksIT.java:498)

Expected behavior
The test passes.

Plugins
none.

Screenshots
none.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Occurred since Mar.10th, 2022.

@tlfeng tlfeng added bug Something isn't working untriaged labels Mar 11, 2022
@tlfeng tlfeng changed the title [BUG] Flaky test failure - v1.2.5#mixedClusterTest - yaml rest test - indices.get_field_mapping [BUG] Flaky test failure - org.opensearch.blocks.SimpleBlocksIT.testAddBlockWhileDeletingIndices Mar 11, 2022
@tlfeng tlfeng changed the title [BUG] Flaky test failure - org.opensearch.blocks.SimpleBlocksIT.testAddBlockWhileDeletingIndices [BUG] Flaky test failure - org.opensearch.blocks.SimpleBlocksIT > testAddBlockWhileDeletingIndices Mar 11, 2022
@tlfeng tlfeng added flaky-test Random test failure that succeeds on second run and removed untriaged labels Mar 11, 2022
@minalsha minalsha assigned gauravruhela and unassigned owaiskazi19 Nov 15, 2023
@ankitkala
Copy link
Member

Closing as duplicate of #2472

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working flaky-test Random test failure that succeeds on second run
Projects
None yet
Development

No branches or pull requests

4 participants