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

Uma Maheswara Rao G commented on HDFS-1690:
-------------------------------------------

Thanks to Konstantin for spending time and giving comments.
 I agree with you, But the problem here is if cluster shuts down abruptly then 
that lock file will still present in namespace directory. In this situation if 
user wanted to format, he can not format the NameNode at all. Thats why i have 
choosen this option. Please tell me your opinion.

> Name Node should not process format command while it is running.
> ----------------------------------------------------------------
>
>                 Key: HDFS-1690
>                 URL: https://issues.apache.org/jira/browse/HDFS-1690
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 0.20.1, 0.20.2, 0.21.0
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>         Attachments: HDFS-1690.patch
>
>
> Currently NameNode allows format command while it running. In this case the 
> command is executed partially (Lock file is deleted) and an exception thrown. 
> Because of this Name Node should be formatted after restart. This sort of 
> cases can happen accidentally. To prevent such cases Name Node should not 
> execute the format command partially while it is running. It can stright away 
> throw exception/log saying, Name Node is running.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to