Virajith Jalaparti created HDFS-13287:
-----------------------------------------

             Summary: TestINodeFile#testGetBlockType results in NPE when run 
alone
                 Key: HDFS-13287
                 URL: https://issues.apache.org/jira/browse/HDFS-13287
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: Virajith Jalaparti
            Assignee: Virajith Jalaparti


When TestINodeFile#testGetBlockType is run by itself, it results in the 
following error:

{code:java}
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.218 s 
<<< FAILURE! - in org.apache.hadoop.hdfs.server.namenode.TestINodeFile
[ERROR] testGetBlockType(org.apache.hadoop.hdfs.server.namenode.TestINodeFile)  
Time elapsed: 0.023 s  <<< ERROR!
java.lang.NullPointerException
        at 
org.apache.hadoop.hdfs.server.namenode.ErasureCodingPolicyManager.getPolicyInfoByID(ErasureCodingPolicyManager.java:220)
        at 
org.apache.hadoop.hdfs.server.namenode.ErasureCodingPolicyManager.getByID(ErasureCodingPolicyManager.java:208)
        at 
org.apache.hadoop.hdfs.server.namenode.INodeFile$HeaderFormat.getBlockLayoutRedundancy(INodeFile.java:207)
        at 
org.apache.hadoop.hdfs.server.namenode.INodeFile.<init>(INodeFile.java:266)
        at 
org.apache.hadoop.hdfs.server.namenode.TestINodeFile.createStripedINodeFile(TestINodeFile.java:112)
        at 
org.apache.hadoop.hdfs.server.namenode.TestINodeFile.testGetBlockType(TestINodeFile.java:299)
....
{code}




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org

Reply via email to