[
https://issues.apache.org/jira/browse/RATIS-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17866506#comment-17866506
]
Duong edited comment on RATIS-2105 at 7/16/24 6:39 PM:
-------------------------------------------------------
Run the TestRetryCacheWithGrpc repeatedly multiple times and cannot reproduce
the "IllegalStateException: Failed to release:" error. I even added code to
crash when that exception is hit by LogAppenderDaemon
(https://github.com/duongkame/ratis/commit/a91b96ae329185ac148869a6931c933a923fc2b5).
[https://github.com/duongkame/ratis/actions/runs/9961434226]
[https://github.com/duongkame/ratis/actions/runs/9961236252]
[https://github.com/duongkame/ratis/actions/runs/9961895619]
was (Author: JIRAUSER290990):
Run the TestRetryCacheWithGrpc repeatedly multiple times and cannot reproduce
the "IllegalStateException: Failed to release:" error. I even added code to
crash when that exception is hit by LogAppenderDaemon.
[https://github.com/duongkame/ratis/actions/runs/9961434226]
[https://github.com/duongkame/ratis/actions/runs/9961236252]
[https://github.com/duongkame/ratis/actions/runs/9961895619]
> TestRetryCacheWithNettyRpc may fail with TimeoutException
> ---------------------------------------------------------
>
> Key: RATIS-2105
> URL: https://issues.apache.org/jira/browse/RATIS-2105
> Project: Ratis
> Issue Type: Bug
> Reporter: Tsz-wo Sze
> Assignee: Duong
> Priority: Major
> Attachments: TestRetryCacheWithGrpc.tar.gz
>
>
> I can reproduce it with ratis-3.1.0-rc0
> {code}
> [INFO] Running org.apache.ratis.netty.TestRetryCacheWithNettyRpc
> [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> 100.299 s <<< FAILURE! - in org.apache.ratis.netty.TestRetryCacheWithNettyRpc
> [ERROR]
> org.apache.ratis.netty.TestRetryCacheWithNettyRpc.testRetryOnNewLeader Time
> elapsed: 100.182 s <<< ERROR!
> java.util.concurrent.TimeoutException: testRetryOnNewLeader() timed out after
> 100 seconds
> at java.util.ArrayList.forEach(ArrayList.java:1259)
> at java.util.ArrayList.forEach(ArrayList.java:1259)
> Suppressed: java.io.InterruptedIOException: retry
> policy=RetryForeverWithSleep(sleepTime = 100ms)
> at
> org.apache.ratis.client.impl.BlockingImpl.sendRequestWithRetry(BlockingImpl.java:138)
> at
> org.apache.ratis.client.impl.AdminImpl.setConfiguration(AdminImpl.java:46)
> at
> org.apache.ratis.client.api.AdminApi.setConfiguration(AdminApi.java:51)
> at
> org.apache.ratis.client.api.AdminApi.setConfiguration(AdminApi.java:45)
> at
> org.apache.ratis.server.impl.MiniRaftCluster.setConfiguration(MiniRaftCluster.java:826)
> at
> org.apache.ratis.RetryCacheTests.lambda$runTestRetryOnNewLeader$0(RetryCacheTests.java:145)
> at
> org.apache.ratis.server.impl.RaftServerTestUtil.runWithMinorityPeers(RaftServerTestUtil.java:231)
> at
> org.apache.ratis.RetryCacheTests.runTestRetryOnNewLeader(RetryCacheTests.java:144)
> at
> org.apache.ratis.server.impl.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:143)
> at
> org.apache.ratis.server.impl.MiniRaftCluster$Factory$Get.runWithNewCluster(MiniRaftCluster.java:121)
> at
> org.apache.ratis.RetryCacheTests.testRetryOnNewLeader(RetryCacheTests.java:124)
> at java.lang.reflect.Method.invoke(Method.java:498)
> ... 2 more
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)