Skip to content

MerkleDbDataSourceTest.preservesInterruptStatusWhenInterruptedClosing() is unstable #17731

Open
@artemananiev

Description

The test fails intermittently:

> Task :swirlds-merkledb:timingSensitive
  com.swirlds.merkledb.MerkleDbDataSourceTest > preservesInterruptStatusWhenInterruptedClosing()

    org.opentest4j.AssertionFailedError
        at app//com.swirlds.merkledb.MerkleDbDataSourceTest.createAndApplyDataSource(MerkleDbDataSourceTest.java:786)
    Caused by: org.opentest4j.AssertionFailedError: Thread interrupt status should NOT be cleared (two total interrupts) ==> expected: <2> but was: <3>
        at app//com.swirlds.merkledb.MerkleDbDataSourceTest.lambda$preservesInterruptStatusWhenInterruptedClosing$48(MerkleDbDataSourceTest.java:558)

If it's changed from "Test" to "RepeatedTest(10)", the very first run fails, and then all subsequent runs are successful.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions