[
https://issues.apache.org/jira/browse/YARN-1879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Advertising
Tsuyoshi OZAWA updated YARN-1879:
---------------------------------
Attachment: YARN-1879.13.patch
The test failure is caused when rm.stop() is called before the state of
RMAppAttemptImp goes into FINISHING. In this case, AsyncDispatcher fails to
stop and timeouts occurs.
{quote}
2014-08-31 11:31:03,892 INFO [Thread-52] event.AsyncDispatcher
(AsyncDispatcher.java:serviceStop(142)) - Waiting for AsyncDispatcher to drain.
2014-08-31 11:31:04,892 INFO [Thread-52] event.AsyncDispatcher
(AsyncDispatcher.java:serviceStop(142)) - Waiting for AsyncDispatcher to drain.
2014-08-31 11:31:05,893 INFO [Thread-52] event.AsyncDispatcher
(AsyncDispatcher.java:serviceStop(142)) - Waiting for AsyncDispatcher to drain.
2014-08-31 11:31:06,893 INFO [Thread-52] event.AsyncDispatcher
(AsyncDispatcher.java:serviceStop(142)) - Waiting for AsyncDispatcher to drain.
2014-08-31 11:31:07,893 INFO [Thread-52] event.AsyncDispatcher
(AsyncDispatcher.java:serviceStop(142)) - Waiting for AsyncDispatcher to drain.
2014-08-31 11:31:08,893 INFO [Thread-52] event.AsyncDispatcher
(AsyncDispatcher.java:serviceStop(142)) - Waiting for AsyncDispatcher to drain.
2014-08-31 11:31:09,894 INFO [Thread-52] event.AsyncDispatcher
(AsyncDispatcher.java:serviceStop(142)) - Waiting for AsyncDispatcher to drain.
2014-08-31 11:31:10,894 INFO [Thread-52] event.AsyncDispatcher
(AsyncDispatcher.java:serviceStop(142)) - Waiting for AsyncDispatcher to drain.
2014-08-31 11:31:11,894 INFO [Thread-52] event.AsyncDispatcher
(AsyncDispatcher.java:serviceStop(142)) - Waiting for AsyncDispatcher to drain.
{quote}
To confirm the state transition, I added
waitForState(RMAppAttemptState.FINISHING) after calling unregisterAppAttempt().
{code}
am1.unregisterAppAttempt(req, false);
am1.waitForState(RMAppAttemptState.FINISHING);
{code}
> Mark Idempotent/AtMostOnce annotations to ApplicationMasterProtocol
> -------------------------------------------------------------------
>
> Key: YARN-1879
> URL: https://issues.apache.org/jira/browse/YARN-1879
> Project: Hadoop YARN
> Issue Type: Sub-task
> Components: resourcemanager
> Reporter: Jian He
> Assignee: Tsuyoshi OZAWA
> Priority: Critical
> Attachments: YARN-1879.1.patch, YARN-1879.1.patch,
> YARN-1879.11.patch, YARN-1879.12.patch, YARN-1879.13.patch,
> YARN-1879.2-wip.patch, YARN-1879.2.patch, YARN-1879.3.patch,
> YARN-1879.4.patch, YARN-1879.5.patch, YARN-1879.6.patch, YARN-1879.7.patch,
> YARN-1879.8.patch, YARN-1879.9.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)