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-6362) Unprotected access to registeredStates in SharedStateRegistry#getReferenceCount
Date Sat, 22 Apr 2017 18:33:04 GMT
Ted Yu created FLINK-6362:
-----------------------------

             Summary: Unprotected access to registeredStates in SharedStateRegistry#getReferenceCount
                 Key: FLINK-6362
                 URL: https://issues.apache.org/jira/browse/FLINK-6362
             Project: Flink
          Issue Type: Bug
            Reporter: Ted Yu


Here is related code:
{code}
  public int getReferenceCount(SharedStateHandle state) {
    if (state == null) {
      return 0;
    }

    SharedStateRegistry.SharedStateEntry entry =
      registeredStates.get(state.getRegistrationKey());
{code}
Access should be protected by holding lock on registeredStates



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message