You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Arpit Agarwal (JIRA)" <ji...@apache.org> on 2016/11/05 16:58:58 UTC

[jira] [Created] (HDFS-11112) Journal Nodes should refuse to format non-empty directories

Arpit Agarwal created HDFS-11112:
------------------------------------

             Summary: Journal Nodes should refuse to format non-empty directories
                 Key: HDFS-11112
                 URL: https://issues.apache.org/jira/browse/HDFS-11112
             Project: Hadoop HDFS
          Issue Type: Improvement
            Reporter: Arpit Agarwal


Journal Nodes should reject the {{format}} RPC request if a storage directory is non-empty. The relevant code is in {{JNStorage#format}}.

{code}
  void format(NamespaceInfo nsInfo) throws IOException {
    setStorageInfo(nsInfo);
...
    unlockAll();
    sd.clearDirectory();
    writeProperties(sd);
    createPaxosDir();
    analyzeStorage();
{code}

This would make the behavior similar to {{namenode -format -nonInteractive}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org