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-3392) Unprotected access to elements in ClosableBlockingQueue#size()
Date Thu, 11 Feb 2016 22:21:18 GMT
Ted Yu created FLINK-3392:
-----------------------------

             Summary: Unprotected access to elements in ClosableBlockingQueue#size()
                 Key: FLINK-3392
                 URL: https://issues.apache.org/jira/browse/FLINK-3392
             Project: Flink
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


Here is related code:
{code}
  public int size() {
    return elements.size();
  }
{code}
Access to elements should be protected by lock.lock() / lock.unlock() pair.



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

Mime
View raw message