Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4525

Buffer leak when async stream is used synchronously and is interrupted

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Connection Management
    • None

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: