Skip to content

Conversation

@ivandika3
Copy link
Contributor

What changes were proposed in this pull request?

Similar to LeakDetector#assertNoLeaks in MiniRaftCluster, we can also add the Netty leak detector in tests as specified in https://netty.io/wiki/reference-counted-objects.html#wiki-h2-9 to ensure that all ByteBuf are released.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/RATIS-2191

How was this patch tested?

Intentionally add leak add check that IllegalStateException is thrown: https://github.com/ivandika3/ratis/actions/runs/11871018319/job/33121223662

Copy link
Contributor

@szetszwo szetszwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 the change looks good.

@szetszwo szetszwo merged commit 04396ca into apache:master Nov 22, 2024
12 checks passed
szetszwo pushed a commit to szetszwo/ratis that referenced this pull request May 23, 2025
szetszwo pushed a commit to szetszwo/ratis that referenced this pull request May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants