[JAVA-5084] InternalStreamConnection must release buffers obtained via ByteBufferBsonOutput.getByteBuffers Created: 26/Jul/23  Updated: 27/Jul/23  Resolved: 27/Jul/23

Status: Closed
Project: Java Driver
Component/s: Internal
Affects Version/s: None
Fix Version/s: 4.11.0

Type: Improvement Priority: Minor - P4
Reporter: Valentin Kavalenka Assignee: Valentin Kavalenka
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
Backwards Compatibility: Major Change
Documentation Changes: Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

Also:

  1. Clarify the specification of Stream.write/writeAsync with regard to releasing resources.
  2. ByteBuf.duplicate probably should be implemented differently to do to requested improvement.

See also https://github.com/mongodb/mongo-java-driver/pull/1157#discussion_r1256587467.



 Comments   
Comment by Githook User [ 27/Jul/23 ]

Author:

{'name': 'Valentin Kovalenko', 'email': 'valentin.kovalenko@mongodb.com', 'username': 'stIncMale'}

Message: `InternalStreamConnection` must release buffers obtained via `ByteBufferBsonOutput.getByteBuffers` (#1160)

JAVA-5084
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/7e8d1da9a3da1cae7274d3ddb73d1deb1e6f6c61

Generated at Thu Feb 08 09:03:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.