[
https://issues.apache.org/jira/browse/HADOOP-12423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14847286#comment-14847286
]
Laxman commented on HADOOP-12423:
---------------------------------
[~abhishek.agarwal], sorry. I misread it. After going through patch, I
understood the issue you are referring to.
In the scenario you mentioned, throwing an exception in static block may lead
to Class initialization exception and errors may be misleading.
+1 patch looks good to me (non-binding).
> ShutdownHookManager throws exception if JVM is already being shut down
> ----------------------------------------------------------------------
>
> Key: HADOOP-12423
> URL: https://issues.apache.org/jira/browse/HADOOP-12423
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Reporter: Abhishek Agarwal
> Assignee: Abhishek Agarwal
> Priority: Minor
> Attachments: HADOOP-12423.patch
>
>
> If JVM is under shutdown, static method in ShutdownHookManager will throw an
> IllegalStateException. This exception should be caught and ignored while
> registering the hooks.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)