[ https://issues.apache.org/jira/browse/HDFS-8384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14731348#comment-14731348 ]
Hadoop QA commented on HDFS-8384: --------------------------------- \\ \\ | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:red}-1{color} | patch | 0m 0s | The patch command could not apply the patch during dryrun. | \\ \\ || Subsystem || Report/Notes || | Patch URL | http://issues.apache.org/jira/secure/attachment/12754250/HDFS-8384-branch-2.7.patch | | Optional Tests | javadoc javac unit findbugs checkstyle | | git revision | branch-2 / 67bce1e | | Console output | https://builds.apache.org/job/PreCommit-HDFS-Build/12315/console | This message was automatically generated. > Allow NN to startup if there are files having a lease but are not under > construction > ------------------------------------------------------------------------------------ > > Key: HDFS-8384 > URL: https://issues.apache.org/jira/browse/HDFS-8384 > Project: Hadoop HDFS > Issue Type: Improvement > Components: namenode > Reporter: Tsz Wo Nicholas Sze > Assignee: Jing Zhao > Priority: Minor > Fix For: 2.8.0 > > Attachments: HDFS-8384-branch-2.6.patch, HDFS-8384-branch-2.7.patch, > HDFS-8384.000.patch > > > When there are files having a lease but are not under construction, NN will > fail to start up with > {code} > 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) > ... > {code} > 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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)