Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
Reviewed
Description
When there are files having a lease but are not under construction, NN will fail to start up with
15/05/12 00:36:31 ERROR namenode.FSImage: Unable to save image for /hadoop/hdfs/namenode
java.lang.IllegalStateException
at com.google.common.base.Preconditions.checkState(Preconditions.java:129)
at org.apache.hadoop.hdfs.server.namenode.LeaseManager.getINodesUnderConstruction(LeaseManager.java:412)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getFilesUnderConstruction(FSNamesystem.java:7124)
...
The actually problem is that the image could be corrupted by bugs like HDFS-7587. We should have an option/conf to allow NN to start up so that the problematic files could possibly be deleted.
Attachments
Attachments
Issue Links
- relates to
-
HDFS-8877 Allow bypassing some minor exceptions while loading editlog
- Resolved