[
https://issues.apache.org/jira/browse/HDFS-2913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13202997#comment-13202997
]
Todd Lipcon commented on HDFS-2913:
-----------------------------------
Currently it is meant to do a "fail fast" shutdown -- i.e System.exit(1) after
logging a FATAL message. A graceful shutdown would be a nice optimization, but
HDFS-2912 should be treated as a bug that the expected fail-fast behavior isn't
being triggered. Doing a graceful shutdown after hitting an unknown state is
likely to be non-trivial
> HA: Need a way to shutdown the Name Node
> ----------------------------------------
>
> Key: HDFS-2913
> URL: https://issues.apache.org/jira/browse/HDFS-2913
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: name-node
> Affects Versions: HA branch (HDFS-1623)
> Reporter: Bikas Saha
> Assignee: Bikas Saha
>
> Ideally, NameNode.stop() needs to be called because it will change the HA
> state and shutdown all services. NameNode reference is not available
> anywhere. Hence it is not possible to shutdown the name node gracefully.
> A possible solution could be to have a Service interface that gets passed
> down to components like FSNameSystem, via which they can inform the NameNode
> about irrecoverable errors. NameNode could then decide to shutdown.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira