[JAVA-4525] Buffer leak when async stream is used synchronously and is interrupted Created: 09/Mar/22  Updated: 24/May/22

Status: Backlog
Project: Java Driver
Component/s: Connection Management
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Jeffrey Yemin Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

When an async stream such as AsynchronousSocketStream is used in a synchronous manner, typically by the server monitor, it can leak buffers from the buffer pool when the stream is closed while waiting for a response. This can happen when the server monitor is interrupted.

In practice this happens rarely since the server monitor is only interrupted when it's closed, so the leak is not all that important. However, it makes it hard to write assertions about the absence of leaks when running integration tests.


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