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

[TEST] Failures in IndexingMemoryControllerTests #39

Closed
1 of 2 tasks
saratvemulapalli opened this issue Feb 3, 2021 · 7 comments
Closed
1 of 2 tasks

[TEST] Failures in IndexingMemoryControllerTests #39

saratvemulapalli opened this issue Feb 3, 2021 · 7 comments
Assignees
Labels
flaky-test Random test failure that succeeds on second run Indexing & Search >test-failure Test failure from CI, local build, etc.

Comments

@saratvemulapalli
Copy link
Member

saratvemulapalli commented Feb 3, 2021

Couple of tests failing in IndexingMemoryControllerTests.

  • org.elasticsearch.indices.IndexingMemoryControllerTests.testSkipRefreshIfShardIsRefreshingAlready
  • org.elasticsearch.indices.IndexingMemoryControllerTests.testTranslogRecoveryWorksWithIMC

Reproduced by ./gradlew ':server:test'

@saratvemulapalli saratvemulapalli added :test Adding or fixing a test >FORK Related to the fork process >test-failure Test failure from CI, local build, etc. and removed :test Adding or fixing a test labels Feb 3, 2021
@adnapibar
Copy link
Contributor

Not able to reproduce with ./gradlew :server:test.

@saratvemulapalli
Copy link
Member Author

Yeah seems like they are not showing up on the local build but they show up on the Github workflow.

@adnapibar
Copy link
Contributor

Yeah seems like they are not showing up on the local build but they show up on the Github workflow.

Looks like the env is not setup properly for github actions.

@saratvemulapalli
Copy link
Member Author

Yup I'll go ahead and close this issue.

@owaiskazi19
Copy link
Member

Got this issue on the recent GHA run: https://github.com/opensearch-project/OpenSearch/runs/4718277102?check_suite_focus=true for the PR: #1665. Reopening the issue.

REPRODUCE WITH: ./gradlew ':server:test' --tests "org.opensearch.indices.IndexingMemoryControllerTests.testSkipRefreshIfShardIsRefreshingAlready" -Dtests.seed=EFEC06DDA82AA01 -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=es-CL -Dtests.timezone=America/Santa_Isabel -Druntime.java=17
> Task :server:test

org.opensearch.indices.IndexingMemoryControllerTests > testSkipRefreshIfShardIsRefreshingAlready FAILED
    java.lang.AssertionError: 
    Expected: <91L>
         but: was <0L>
        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.indices.IndexingMemoryControllerTests.lambda$testSkipRefreshIfShardIsRefreshingAlready$6(IndexingMemoryControllerTests.java:490)
        at org.opensearch.test.OpenSearchTestCase.assertBusy(OpenSearchTestCase.java:1060)
        at org.opensearch.test.OpenSearchTestCase.assertBusy(OpenSearchTestCase.java:1033)
        at org.opensearch.indices.IndexingMemoryControllerTests.testSkipRefreshIfShardIsRefreshingAlready(IndexingMemoryControllerTests.java:488)

    com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=18872, name=opensearch[org.opensearch.indices.IndexingMemoryControllerTests][refresh][T#1], state=RUNNABLE, group=TGRP-IndexingMemoryControllerTests]

        Caused by:
        java.lang.AssertionError: java.lang.InterruptedException
            at __randomizedtesting.SeedInfo.seed([EFEC06DDA82AA01]:0)
            at org.opensearch.indices.IndexingMemoryControllerTests$2.beforeRefresh(IndexingMemoryControllerTests.java:448)

            Caused by:
            java.lang.InterruptedException
                at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1048)
                at java.base/java.util.concurrent.CountDownLatch.await(CountDownLatch.java:230)
                at org.opensearch.indices.IndexingMemoryControllerTests$2.beforeRefresh(IndexingMemoryControllerTests.java:446)

  1> [2022-01-05T10:17:35,025][INFO ][o.o.i.IndexingMemoryControllerTests] [testTranslogRecoveryWorksWithIMC] before test

@owaiskazi19 owaiskazi19 reopened this Jan 5, 2022
@owaiskazi19 owaiskazi19 added flaky-test Random test failure that succeeds on second run and removed flaky-test Random test failure that succeeds on second run labels Jan 5, 2022
@dblock dblock added flaky-test Random test failure that succeeds on second run and removed >FORK Related to the fork process labels Feb 10, 2022
@Poojita-Raj
Copy link
Contributor

Poojita-Raj commented Dec 6, 2022

The failure org.elasticsearch.indices.IndexingMemoryControllerTests.testSkipRefreshIfShardIsRefreshingAlready is also seen on windows machines.

  2> REPRODUCE WITH: gradlew ':server:test' --tests "org.opensearch.indices.IndexingMemoryControllerTests.testSkipRefres
hIfShardIsRefreshingAlready" -Dtests.seed=52D095378CEB44D1 -Dtests.security.manager=true -Dtests.jvm.argline="-XX:Tiered
StopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=pl -Dtests.timezone=America/North_Dakota/New_Salem -Druntime
.java=11  2>
  2> java.lang.AssertionError:
    Expected: <64L>
         but: was <0L>
        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.indices.IndexingMemoryControllerTests.lambda$testSkipRefreshIfShardIsRefreshingAlready$6(Index
ingMemoryControllerTests.java:490)
        at org.opensearch.test.OpenSearchTestCase.assertBusy(OpenSearchTestCase.java:1060)
        at org.opensearch.test.OpenSearchTestCase.assertBusy(OpenSearchTestCase.java:1033)
        at org.opensearch.indices.IndexingMemoryControllerTests.testSkipRefreshIfShardIsRefreshingAlready(IndexingMemory
ControllerTests.java:488)

    com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=24, n
ame=opensearch[org.opensearch.indices.IndexingMemoryControllerTests][refresh][T#1], state=RUNNABLE, group=TGRP-IndexingM
emoryControllerTests]

        Caused by:
        java.lang.AssertionError: java.lang.InterruptedException
            at __randomizedtesting.SeedInfo.seed([52D095378CEB44D1]:0)
            at org.opensearch.indices.IndexingMemoryControllerTests$2.beforeRefresh(IndexingMemoryControllerTests.java:4
48)

            Caused by:
            java.lang.InterruptedException
                at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(Abstract
QueuedSynchronizer.java:1040)
                at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQu
euedSynchronizer.java:1345)
                at java.base/java.util.concurrent.CountDownLatch.await(CountDownLatch.java:232)
                at org.opensearch.indices.IndexingMemoryControllerTests$2.beforeRefresh(IndexingMemoryControllerTests.ja
va:446)
  2> NOTE: leaving temporary files on disk at: D:\Users\Pooj8\try\OpenSearch\server\build\testrun\test\temp\org.opensear
ch.indices.IndexingMemoryControllerTests_52D095378CEB44D1-001  2>
  2> Dec 06, 2022 10:28:02 AM com.carrotsearch.randomizedtesting.RandomizedRunner$QueueUncaughtExceptionsHandler uncaugh
tException

@andrross
Copy link
Member

andrross commented Feb 21, 2024

No references in over a year. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky-test Random test failure that succeeds on second run Indexing & Search >test-failure Test failure from CI, local build, etc.
Projects
None yet
Development

No branches or pull requests

8 participants