Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-1502

TestBlockRecovery triggers NPE in assert

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 0.22.0, 0.23.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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.

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

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Hairong Kuang
            Reporter:
            Eli Collins
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development