[
https://issues.apache.org/jira/browse/FLINK-2472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14653029#comment-14653029
]
ASF GitHub Bot commented on FLINK-2472:
---------------------------------------
GitHub user sachingoel0101 opened a pull request:
https://github.com/apache/flink/pull/979
[FLINK-2472]Make JobClientActor poll JobManager continuously for updates on
submitted job
This PR adds functionality for the `JobClientActor` to poll the
`JobManager` after a set interval `JOB_CLIENT_HEARTBEAT_INTERVAL`(5s) about the
status of submitted job.
Furthermore, there is a inherent timeout on the `JobClientActor` for not
receiving any messages(only `JobManager` is likely to send any messages) for
`JOB_CLIENT_JOB_MANAGER_TIMEOUT`(10s).
If the job status comes as `CREATED` or `RESTARTING` for more than
`JOB_CLIENT_JOB_STATUS_TIMEOUT`(30s), the `JobClient` is sent a
`Status.Failure` message, which to equivalent to the idea mentioned in the jira
ticket.
This work isn't complete, and I'd love feedback about whether different job
status messages are handled properly, and what is the best place to place the
time interval configuration. It can be placed in the usual place, i.e.,
`ConfigConstants` but there is no `Configuration` accessible in the
`JobClientActor`.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/sachingoel0101/flink flink-2472
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/979.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #979
----
commit 9cf23c5e397bc7a8a8faf7427d2ae6dbd0d73143
Author: Sachin Goel <[email protected]>
Date: 2015-08-03T23:14:29Z
[FLINK-2472]Make JobClientActor poll JobManager continuously for updates
and fail if job manager is dead or task hasn't been running
----
> Make the JobClientActor check periodically if the submitted Job is still
> running and if the JobManager is still alive
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: FLINK-2472
> URL: https://issues.apache.org/jira/browse/FLINK-2472
> Project: Flink
> Issue Type: Improvement
> Reporter: Till Rohrmann
> Assignee: Sachin Goel
>
> In case that the {{JobManager}} dies without notifying possibly connected
> {{JobClientActors}} or if the job execution finishes without sending the
> {{SerializedJobExecutionResult}} back to the {{JobClientActor}}, it might
> happen that a {{JobClient.submitJobAndWait}} never returns.
> I propose to let the {{JobClientActor}} periodically check whether the
> {{JobManager}} is still alive and whether the submitted job is still running.
> If not, then the {{JobClientActor}} should return an exception to complete
> the waiting future.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)