hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-4313) Race condition in MiniMRYarnCluster when getting history server address
Date Fri, 30 Oct 2015 01:15:27 GMT

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

Hudson commented on YARN-4313:
------------------------------

FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #604 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/604/])
YARN-4313. Race condition in MiniMRYarnCluster when getting history (xgong: rev 7412ff48eeb967c972c19c1370c77a41c5b3b81f)
* hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapreduce/v2/MiniMRYarnCluster.java
* hadoop-yarn-project/CHANGES.txt


> Race condition in MiniMRYarnCluster when getting history server address
> -----------------------------------------------------------------------
>
>                 Key: YARN-4313
>                 URL: https://issues.apache.org/jira/browse/YARN-4313
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Jian He
>            Assignee: Jian He
>             Fix For: 2.8.0, 2.7.2
>
>         Attachments: YARN-4313.1.patch, YARN-4313.2.patch
>
>
> Problem in this place when waiting for JHS to be started
> {code}
>         new Thread() {
>           public void run() {
>             historyServer.start();
>           };
>         }.start();
>         while (historyServer.getServiceState() == STATE.INITED) {
>           LOG.info("Waiting for HistoryServer to start...");
>           Thread.sleep(1500);
>         }
> {code}
> The service state is updated before the service is actually started. See AbstractServic#start.
 So it's possible that when the while loop breaks, the service is not yet started. 



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

Mime
View raw message