Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
Journal Nodes should reject the format RPC request if a storage directory is non-empty. The relevant code is in JNStorage#format.
void format(NamespaceInfo nsInfo) throws IOException {
setStorageInfo(nsInfo);
...
unlockAll();
sd.clearDirectory();
writeProperties(sd);
createPaxosDir();
analyzeStorage();
This would make the behavior similar to namenode -format -nonInteractive.
Attachments
Attachments
Issue Links
- is related to
-
HDFS-10360 DataNode may format directory and lose blocks if current/VERSION is missing
- Resolved
-
HDFS-10457 DataNode should not auto-format block pool directory if VERSION is missing
- Resolved
- relates to
-
HDFS-13805 Journal Nodes should allow to format non-empty directories with "-force" option
- Resolved