You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Laxman (JIRA)" <ji...@apache.org> on 2015/09/18 13:25:04 UTC

[jira] [Commented] (HADOOP-12423) ShutdownHookManager throws exception if JVM is already being shut down

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

Laxman commented on HADOOP-12423:
---------------------------------

[~abhishek.agarwal], that is expected behavior. client should not be able to register a hook when shutdown is already in progress and client should be handling this exception. we should not be suppressing the exception in ShutdownHookManager.

> 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)