flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-5002) Lack of synchronization in LocalBufferPool#getNumberOfUsedBuffers
Date Wed, 02 Nov 2016 22:06:58 GMT
Ted Yu created FLINK-5002:
-----------------------------

             Summary: Lack of synchronization in LocalBufferPool#getNumberOfUsedBuffers
                 Key: FLINK-5002
                 URL: https://issues.apache.org/jira/browse/FLINK-5002
             Project: Flink
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


{code}
  public int getNumberOfUsedBuffers() {
    return numberOfRequestedMemorySegments - availableMemorySegments.size();
  }
{code}
Access to availableMemorySegments should be protected with proper synchronization as other
methods do.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message