Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-1502

TestBlockRecovery triggers NPE in assert

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.22.0
    • 0.22.0, 0.23.0
    • None
    • None
    • Reviewed

    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.

      Attachments

        1. fixTestBlockRecovery.patch
          5 kB
          Hairong Kuang
        2. HDFS-1502.patch
          2 kB
          Konstantin I Boudnik

        Activity

          People

            hairong Hairong Kuang
            eli Eli Collins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: