You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Tsz-wo Sze (Jira)" <ji...@apache.org> on 2024/09/27 05:02:00 UTC

[jira] [Updated] (RATIS-2164) LeakDetector has a race condition

     [ https://issues.apache.org/jira/browse/RATIS-2164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tsz-wo Sze updated RATIS-2164:
------------------------------
        Parent: RATIS-1931
    Issue Type: Sub-task  (was: Improvement)

> LeakDetector has a race condition
> ---------------------------------
>
>                 Key: RATIS-2164
>                 URL: https://issues.apache.org/jira/browse/RATIS-2164
>             Project: Ratis
>          Issue Type: Sub-task
>          Components: util
>            Reporter: Tsz-wo Sze
>            Priority: Major
>
> In the IllegalStateException, the code assert that the allLeaks set was non-empty.  However, when it printed the message, the allLeaks set became 0 size.  See https://github.com/apache/ratis/actions/runs/11047422561/job/30704978190?pr=1154#step:5:1100
> {code}
> 	Suppressed: java.lang.IllegalStateException: allLeaks.size = 0
> 		at org.apache.ratis.util.Preconditions.assertTrue(Preconditions.java:77)
> 		at org.apache.ratis.util.LeakDetector.assertNoLeaks(LeakDetector.java:107)
> 		at org.apache.ratis.server.impl.MiniRaftCluster.shutdown(MiniRaftCluster.java:869)
> 		at org.apache.ratis.grpc.MiniRaftClusterWithGrpc.shutdown(MiniRaftClusterWithGrpc.java:96)
> 		at org.apache.ratis.server.impl.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:149)
> 		at org.apache.ratis.server.impl.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:121)
> 		at org.apache.ratis.InstallSnapshotFromLeaderTests.testInstallSnapshotLeaderSwitch(InstallSnapshotFromLeaderTests.java:96)
> 		at org.apache.ratis.grpc.TestLeaderInstallSnapshotWithGrpc.testInstallSnapshotLeaderSwitch(TestLeaderInstallSnapshotWithGrpc.java:53)
> 		at java.lang.reflect.Method.invoke(Method.java:498)
> 		... 44 more
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)