[
https://issues.apache.org/jira/browse/HDFS-2912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13203183#comment-13203183
]
Aaron T. Myers commented on HDFS-2912:
--------------------------------------
bq. Since the patch calls Runtime.exit(1) I dont know of any way to test it
other than the manual test.
There are several tests around which stub in mock Runtime objects so the
Runtime.exit(...) doesn't actually cause a JVM exit. These tests then verify
that Runtime.exit(...) was called the appropriate number of times.
> HA: Namenode not shutting down when shared edits dir is inaccessible
> --------------------------------------------------------------------
>
> Key: HDFS-2912
> URL: https://issues.apache.org/jira/browse/HDFS-2912
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: ha, name-node
> Affects Versions: HA branch (HDFS-1623)
> Reporter: Bikas Saha
> Assignee: Bikas Saha
> Attachments: HDFS-2909.HDFS-1623.patch
>
>
> When there is an error in shared edits dir then current policy requires the
> active name node to abort and shutdown.
> Currently there is no way to shut down the name node and hence this does not
> happen even after all journals have been aborted on error. In fact the name
> node stays Active and also is not in safe mode. Ideally it should shut down,
> or at least go into safe mode or standby mode.
--
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