[
https://issues.apache.org/jira/browse/MAPREDUCE-6049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14146256#comment-14146256
]
Devaraj K commented on MAPREDUCE-6049:
--------------------------------------
[~nishan] Thanks for reporting. Can you paste the exception/error from logs
when this issue occurs?
[~rohithsharma] Thanks for your contribution. If we move the
*clientService.stop()* to finally, we will not be handling the shutdown
error/exception instead we will be throwing to JVM. And also the exception
message need to change accordingly in the catch block if we want to go with the
current patch.
I think we need to add *System.exit(-1)* in catch block without modifying the
existing code so that if any exception/error occurs during stop will be handled
properly.
> AM JVM does not exit if MRClientService gracefull shutdown fails
> ----------------------------------------------------------------
>
> Key: MAPREDUCE-6049
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-6049
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: applicationmaster, resourcemanager
> Affects Versions: 2.5.0
> Reporter: Nishan Shetty
> Assignee: Rohith
> Attachments: AM_ThreadDump.td, MAPREDUCE-6049.patch,
> MAPREDUCE-6049.patch
>
>
> Eventhough job got FAILED, AM process still not exiting
> ThreadDump of AM process is below
> {noformat}
> "Job Fail Wait Timeout Monitor #0" daemon prio=10 tid=0x0000000000aa9000
> nid=0x41fa waiting on condition [0x00007f0e0d1d0000]
> java.lang.Thread.State: WAITING (parking)
> at sun.misc.Unsafe.park(Native Method)
> - parking to wait for <0x00000000c104c688> (a
> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
> at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
> at
> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1079)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:807)
> at
> java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)