[ 
https://issues.apache.org/jira/browse/FLINK-11835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16972997#comment-16972997
 ] 

chunpinghe commented on FLINK-11835:
------------------------------------

{{As JobManagerRunner::closeAsync}} runs asynchronously, The submitted jobs 
have a chance to become finished if the unblock method is invoked before the 
task is cancelled.

I think we can fix this by waiting the job status to become `JobStatus.RUNNING` 
before we unblock   operators.

> ZooKeeperLeaderElectionITCase.testJobExecutionOnClusterWithLeaderChange failed
> ------------------------------------------------------------------------------
>
>                 Key: FLINK-11835
>                 URL: https://issues.apache.org/jira/browse/FLINK-11835
>             Project: Flink
>          Issue Type: Bug
>          Components: Runtime / Coordination
>    Affects Versions: 1.8.0
>            Reporter: Gary Yao
>            Priority: Critical
>              Labels: pull-request-available, test-stability
>             Fix For: 1.10.0
>
>         Attachments: scratch_22.txt
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {noformat}
> 20:44:07.264 [ERROR] 
> testJobExecutionOnClusterWithLeaderChange(org.apache.flink.test.runtime.leaderelection.ZooKeeperLeaderElectionITCase)
>   Time elapsed: 4.625 s  <<< ERROR!
> java.util.concurrent.ExecutionException: 
> org.apache.flink.runtime.messages.FlinkJobNotFoundException: Could not find 
> Flink job (2e957dc4f49feaed042eb8b4a7932610)
>       at 
> org.apache.flink.test.runtime.leaderelection.ZooKeeperLeaderElectionITCase.testJobExecutionOnClusterWithLeaderChange(ZooKeeperLeaderElectionITCase.java:152)
> Caused by: org.apache.flink.runtime.messages.FlinkJobNotFoundException: Could 
> not find Flink job (2e957dc4f49feaed042eb8b4a7932610)
>       at 
> org.apache.flink.test.runtime.leaderelection.ZooKeeperLeaderElectionITCase.testJobExecutionOnClusterWithLeaderChange(ZooKeeperLeaderElectionITCase.java:149)
> {noformat}
> https://api.travis-ci.org/v3/job/502210892/log.txt



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to