Skip to content

Fix Netty reference leak. #1762

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Fix Netty reference leak. #1762

wants to merge 2 commits into from

Conversation

rozza
Copy link
Member

@rozza rozza commented Jul 7, 2025

Fixes netty byte buffer releases in edge case scenarios:

  • Ensure async select server uses a callback if the cluster had been closed
  • Ensure that handleReadResponse checks to see if the cluster had been closed before retaining incoming buffers
  • Ensure closing the netty stream releases all references

Test fixes

  • Ensure tests run using paranoid leak detection
  • Fail the testsuite if a leak is detected.
  • Fixed releasing buffers in the ByteBufferBsonOutputTest.

JAVA-5901

Fixes netty byte buffer releases in edge case scenarios:

- Ensure async select server uses a callback if the cluster had been closed
- Ensure that handleReadResponse checks to see if the cluster had been closed
  before retaining incoming buffers
- Ensure closing the netty stream releases all references

Test fixes
- Ensure tests run using paranoid leak detection
- Fail the testsuite if a leak is detected.
- Fixed releasing buffers in the ByteBufferBsonOutputTest.

JAVA-5901
@rozza rozza requested a review from a team as a code owner July 7, 2025 10:07
@rozza rozza requested review from vbabanin and removed request for a team July 7, 2025 10:07
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.

1 participant