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

Lack of synchronization in LocalBufferPool#getNumberOfUsedBuffers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.2.0
    • None

    Description

        public int getNumberOfUsedBuffers() {
          return numberOfRequestedMemorySegments - availableMemorySegments.size();
        }
      

      Access to availableMemorySegments should be protected with proper synchronization as other methods do.

      Attachments

        Issue Links

          Activity

            People

              roman_maier Roman Maier
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: