[
https://issues.apache.org/jira/browse/HDFS-4168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13493487#comment-13493487
]
Tsz Wo (Nicholas), SZE commented on HDFS-4168:
----------------------------------------------
All the following tests fail with the same NPE.
{noformat}
[junit] Running org.apache.hadoop.hdfs.TestDFSUpgradeFromImage
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 3.459 sec
--
[junit] Running org.apache.hadoop.hdfs.TestRestartDFS
[junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 13.939 sec
--
[junit] Running org.apache.hadoop.hdfs.TestSafeMode
[junit] Tests run: 3, Failures: 0, Errors: 2, Time elapsed: 9.124 sec
--
[junit] Running org.apache.hadoop.hdfs.server.namenode.TestCheckpoint
[junit] Tests run: 3, Failures: 0, Errors: 3, Time elapsed: 6.36 sec
--
[junit] Running org.apache.hadoop.hdfs.server.namenode.TestStartup
[junit] Tests run: 3, Failures: 2, Errors: 0, Time elapsed: 7.259 sec
{noformat}
> TestDFSUpgradeFromImage fails in branch-1
> -----------------------------------------
>
> Key: HDFS-4168
> URL: https://issues.apache.org/jira/browse/HDFS-4168
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: name-node
> Reporter: Tsz Wo (Nicholas), SZE
> Assignee: Jing Zhao
>
> {noformat}
> java.lang.NullPointerException
> at
> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.removeBlocks(FSNamesystem.java:2212)
> at
> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.removePathAndBlocks(FSNamesystem.java:2225)
> at
> org.apache.hadoop.hdfs.server.namenode.FSDirectory.unprotectedDelete(FSDirectory.java:645)
> at
> org.apache.hadoop.hdfs.server.namenode.FSEditLog.loadFSEdits(FSEditLog.java:833)
> at
> org.apache.hadoop.hdfs.server.namenode.FSImage.loadFSEdits(FSImage.java:1024)
> at
> org.apache.hadoop.hdfs.server.namenode.FSImage.loadFSImage(FSImage.java:841)
> at
> org.apache.hadoop.hdfs.server.namenode.FSImage.doUpgrade(FSImage.java:402)
> at
> org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:367)
> at
> org.apache.hadoop.hdfs.server.namenode.FSDirectory.loadFSImage(FSDirectory.java:104)
> at
> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.initialize(FSNamesystem.java:420)
> at
> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.<init>(FSNamesystem.java:388)
> at
> org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:285)
> at
> org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:546)
> at
> org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1444)
> at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:278)
> at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:173)
> at
> org.apache.hadoop.hdfs.TestDFSUpgradeFromImage.testUpgradeFromImage(TestDFSUpgradeFromImage.java:185)
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira