job-scheduler icon indicating copy to clipboard operation
job-scheduler copied to clipboard

[BUG] LockServiceIT.testRenewLock test is intermittently failing

Open peternied opened this issue 3 years ago • 0 comments

Describe the bug During the distribution build of OpenSearch there was a failure that blocked the build. Note, there was no failure in the arm64 build making this look like a flaky code/test issue.

To Reproduce Steps to reproduce the behavior:

REPRODUCE WITH: ./gradlew ':opensearch-job-scheduler-spi:integTest' --tests "org.opensearch.jobscheduler.spi.utils.LockServiceIT.testRenewLock" -Dtests.seed=C9B40C426EAB7723 -Dtests.security.manager=false -Dtests.locale=is -Dtests.timezone=Asia/Ulan_Bator -Druntime.java=14

org.opensearch.jobscheduler.spi.utils.LockServiceIT > testRenewLock FAILED
    com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=29, name=opensearch[transport_client_external_0][listener][T#1], state=RUNNABLE, group=TGRP-LockServiceIT]
        at __randomizedtesting.SeedInfo.seed([C9B40C426EAB7723:6C64C21D3C59B692]:0)

        Caused by:
        java.lang.AssertionError: Failed to release lock.
            at __randomizedtesting.SeedInfo.seed([C9B40C426EAB7723]:0)
            at org.junit.Assert.fail(Assert.java:88)
            at org.junit.Assert.assertTrue(Assert.java:41)
            at org.opensearch.jobscheduler.spi.utils.LockServiceIT.lambda$testRenewLock$63(LockServiceIT.java:488)

Expected behavior If there is a defect in job scheduler it needs to be fixed, if there is an issue with the test it needs to be disabled or fixed.

Plugins Please list all plugins currently enabled.

Host/Environment (please complete the following information):

  • OS: Linux Jenkins Build Node

Logs Here is the full log of the failure https://gist.github.com/peternied/8e81a30e1288a3e7c00052c375c9b43c

peternied avatar Sep 02 '21 22:09 peternied