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

Network buffer leaks in requesting a batch of segments during canceling

    XMLWordPrintableJSON

Details

    Description

      In NetworkBufferPool#requestMemorySegmentsnumTotalRequiredBuffers is increased by numRequiredBuffers first.

      If InterruptedException is thrown during polling segments from the available queue, the requested segments will be recycled back to NetworkBufferPoolnumTotalRequiredBuffers is decreased by the number of polled segments which is now inconsistent with numRequiredBuffers. So numTotalRequiredBuffers in NetworkBufferPool leaks in this case, and we can also decrease numRequiredBuffers to fix this bug.

       

      Attachments

        Issue Links

          Activity

            People

              nkruber Nico Kruber
              zjwang Zhijiang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: