duongkame commented on PR #1081:
URL: https://github.com/apache/ratis/pull/1081#issuecomment-2105049477
> @duongkame , thanks for the update! There are some test failure with leak.
Please take a look.
The original error is test timed out after 100s. The leaks are there because
GC is interrupted.
```
2024-05-10 16:41:31,890 [main] INFO impl.MiniRaftCluster
(MiniRaftCluster.java:shutdown(863)) - gc interrupted.
```
When GC is not finished, LeakDetector can finish its job.
```
// GC to ensure leak detection work.
try {
RaftTestUtil.gc();
} catch (InterruptedException e) {
LOG.info("gc interrupted.");
}
ReferenceCountedLeakDetector.getLeakDetector().assertNoLeaks();
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]