You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Stephan Ewen (JIRA)" <ji...@apache.org> on 2016/11/11 12:08:58 UTC
[jira] [Updated] (FLINK-5002) Lack of synchronization in
LocalBufferPool#getNumberOfUsedBuffers
[ https://issues.apache.org/jira/browse/FLINK-5002?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephan Ewen updated FLINK-5002:
--------------------------------
Labels: easyfix starter (was: )
> 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
> Labels: easyfix, starter
>
> {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)