Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-9761

Potential buffer leak in PartitionRequestClientHandler during job failures

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Won't Fix
    • 1.5.0
    • 1.6.5, 1.7.3
    • Runtime / Network
    • None

    Description

      PartitionRequestClientHandler#stagedMessages may be accessed from multiple threads:
      1) Netty's IO thread
      2) During cancellation, PartitionRequestClientHandler.BufferListenerTask#notifyBufferDestroyed is called

      If PartitionRequestClientHandler.BufferListenerTask#notifyBufferDestroyed thinks, stagesMessages is empty, however, it will not install the stagedMessagesHandler that consumes and releases buffers from received messages.
      Unless some unexpected combination of code calls prevents this from happening, this would leak the non-recycled buffers.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nkruber Nico Kruber
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: