Description
Testcase: testRBW_RWRReplicas took 10.333 sec Caused an ERROR null java.lang.NullPointerException at org.apache.hadoop.hdfs.server.datanode.DataNode.syncBlock(DataNode.java:1881) at org.apache.hadoop.hdfs.server.datanode.TestBlockRecovery.testSyncReplicas(TestBlockRecovery.java:144) at org.apache.hadoop.hdfs.server.datanode.TestBlockRecovery.testRBW_RWRReplicas(TestBlockRecovery.java:305)
Block reply = r.datanode.updateReplicaUnderRecovery( r.rInfo, recoveryId, newBlock.getNumBytes()); assert reply.equals(newBlock) && reply.getNumBytes() == newBlock.getNumBytes() : "Updated replica must be the same as the new block."; <----- line 1881
Not sure how reply could be null since updateReplicaUnderRecovery always returns a newly instantiated object.