Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
DataStorage.java
if (this.initialized) { LOG.info("DataNode version: " + HdfsServerConstants.DATANODE_LAYOUT_VERSION + " and NameNode layout version: " + nsInfo.getLayoutVersion()); this.storageDirs = new ArrayList<StorageDirectory>(dataDirs.size()); // mark DN storage is initialized this.initialized = true; }
The first if should be !this.initialized I think?
Attachments
Attachments
Issue Links
- is broken by
-
HDFS-7035 Make adding a new data directory to the DataNode an atomic operation and improve error handling
- Closed