flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shuai-xu <...@git.apache.org>
Subject [GitHub] flink pull request #3385: [FLINK-5501] JM use running job registry to determ...
Date Wed, 22 Feb 2017 06:31:33 GMT
GitHub user shuai-xu opened a pull request:

    https://github.com/apache/flink/pull/3385

    [FLINK-5501] JM use running job registry to determine whether is the first running

    This pr if for jira-#[5501](https://issues.apache.org/jira/browse/FLINK-5501).
    
    The main changes are:
    1. Add interface isJobFinished() and clearJob() to RunningJobRegistry and implement them.
    2. After grantLeadership, JMRunner will first check whether the job is finished, if finished,
it means that other JM has finished the job, it only need to exist.
    3. Then JMRunner will check whether the job is running, if running, it means other JM
has run it, but not succeeded, so it need to recover it.
    4. If the job is not running, it mean the first running, the JMRunner will setJobRunning
in RunningJobRegistry.
    5. After job finished, will clear the job state from RunningJobRegistry 

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/shuai-xu/flink jira-5501

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/3385.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 #3385
    
----
commit 7c5068e7ea0592f3ba0527d3d363c7cf4653713d
Author: shuai.xus <shuai.xus@alibaba-inc.com>
Date:   2017-02-22T06:15:43Z

    [FLINK-5501] JM use running job registry to determine whether is the first running

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message