flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLINK-7433) Lack of synchronization accessing inProgress in JobCancellationWithSavepointHandlers
Date Mon, 04 Sep 2017 15:21:00 GMT

     [ https://issues.apache.org/jira/browse/FLINK-7433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ted Yu updated FLINK-7433:
--------------------------
    Description: 
{code}
              try {
                if (throwable != null) {
                  completed.put(requestId, throwable);
                } else {
                  completed.put(requestId, path);
                }
              } finally {
                inProgress.remove(jobId);
              }
{code}
The call to inProgress.remove(jobId) should be protected by lock object.

  was:
{code}
              try {
                if (throwable != null) {
                  completed.put(requestId, throwable);
                } else {
                  completed.put(requestId, path);
                }
              } finally {
                inProgress.remove(jobId);
              }
{code}

The call to inProgress.remove(jobId) should be protected by lock object.


> Lack of synchronization accessing inProgress in JobCancellationWithSavepointHandlers
> ------------------------------------------------------------------------------------
>
>                 Key: FLINK-7433
>                 URL: https://issues.apache.org/jira/browse/FLINK-7433
>             Project: Flink
>          Issue Type: Bug
>          Components: State Backends, Checkpointing
>            Reporter: Ted Yu
>            Priority: Minor
>
> {code}
>               try {
>                 if (throwable != null) {
>                   completed.put(requestId, throwable);
>                 } else {
>                   completed.put(requestId, path);
>                 }
>               } finally {
>                 inProgress.remove(jobId);
>               }
> {code}
> The call to inProgress.remove(jobId) should be protected by lock object.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message