[
https://issues.apache.org/jira/browse/MAPREDUCE-5547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13915087#comment-13915087
]
Zhijie Shen commented on MAPREDUCE-5547:
----------------------------------------
Jason, thanks for your input. For the first race condition, we are still able
to handle it by change getProxy() a bit, because the AM is still alive for a
while after RM says the app is finished. However, you second concern is a much
stronger cons of moving the history file after unregistration.
I used to think about another compromise, which may not completely solve the
issue, but can largely reduce its occurrence: if unregistration happens,
MRAppMaster goes to the intermediate done dir to delete the copied history
file. However, it can not handle the other race condition that JHS move the
history file to done dir before it gets deleted. Hopefully, this case should be
quite rare. Any idea? I attached a sample patch to demonstrate this approach.
> Job history should not be flushed to JHS until AM gets unregistered
> -------------------------------------------------------------------
>
> Key: MAPREDUCE-5547
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-5547
> Project: Hadoop Map/Reduce
> Issue Type: Sub-task
> Reporter: Zhijie Shen
> Assignee: Zhijie Shen
> Attachments: MAPREDUCE-5547.1.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)