Skip to content

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
Copy link
Member

@vbabanin vbabanin left a comment

Choose a reason for hiding this comment

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

Looks good! Just one suggestion.

…tyStream.java Co-authored-by: Viacheslav Babanin <frest0512@gmail.com>
@rozza rozza requested a review from vbabanin July 10, 2025 08:01
Copy link
Member

@vbabanin vbabanin left a comment

Choose a reason for hiding this comment

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

LGTM!

@rozza rozza merged commit 141ee1e into mongodb:main Jul 10, 2025
54 checks passed
@rozza rozza deleted the JAVA-5901 branch July 10, 2025 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants