hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ChenFolin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MAPREDUCE-6710) Job CommitterEventHandler waitForValidCommitWindow may wait forever
Date Fri, 03 Jun 2016 10:55:59 GMT

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

ChenFolin updated MAPREDUCE-6710:
---------------------------------
    Attachment: MAPREDUCE-6710.patch

add patch file

> Job CommitterEventHandler waitForValidCommitWindow may wait forever
> -------------------------------------------------------------------
>
>                 Key: MAPREDUCE-6710
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6710
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: applicationmaster
>    Affects Versions: 2.5.0, 2.6.1, 2.8.0, 3.0.0-alpha1
>            Reporter: ChenFolin
>         Attachments: MAPREDUCE-6710.patch
>
>
> The callBack Runnable may run after runOnNextHeartbeat but before wait(), if that happens,
it will wait forever.
> So I think the wait() must set timeout.
> CommitterEventHandler#waitForValidCommitWindow
> while (now - lastHeartbeatTime > commitWindowMs) {
>         rmHeartbeatHandler.runOnNextHeartbeat(new Runnable() {
>           @Override
>           public void run() {
>             synchronized (EventProcessor.this) {
>               EventProcessor.this.notify();
>             }
>           }
>         });
>         wait();
>         lastHeartbeatTime = rmHeartbeatHandler.getLastHeartbeatTime();
>         now = context.getClock().getTime();
>       }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: mapreduce-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: mapreduce-issues-help@hadoop.apache.org


Mime
View raw message