hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wei-Chiu Chuang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-12112) TestBlockManager#testBlockManagerMachinesArray sometimes fails with NPE
Date Mon, 10 Jul 2017 19:26:02 GMT
Wei-Chiu Chuang created HDFS-12112:

             Summary: TestBlockManager#testBlockManagerMachinesArray sometimes fails with
                 Key: HDFS-12112
                 URL: https://issues.apache.org/jira/browse/HDFS-12112
             Project: Hadoop HDFS
          Issue Type: Bug
    Affects Versions: 3.0.0-beta1
         Environment: CDH5.12.0
            Reporter: Wei-Chiu Chuang
            Assignee: Wei-Chiu Chuang
            Priority: Minor

Found the following error:
java.lang.NullPointerException: null
	at org.apache.hadoop.hdfs.server.blockmanagement.TestBlockManager.testBlockManagerMachinesArray(TestBlockManager.java:1202)
The NPE suggests corruptStorageDataNode in the following code snippet could be null.
for(int i=0; i<corruptStorageDataNode.getStorageInfos().length; i++) {

Looking at the code, the test does not wait for file replication to happen, which is why corruptStorageDataNode
(the DN of the second replica) is null.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org

View raw message