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

Recycle buffers to freeSegments before releasing data buffer for sort accumulator

    XMLWordPrintableJSON

Details

    Description

      When using sortBufferAccumulator, we should recycle the buffers to freeSegments before releasing the data buffer. The reason is that when getting buffers from the DataBuffer, it may require more buffers than the current quantity available in freeSegments. Consequently, to ensure adequate buffers from DataBuffer, the flushed and recycled buffers should also be added to freeSegments for reuse.

      Attachments

        Activity

          People

            tanyuxin Yuxin Tan
            tanyuxin Yuxin Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: