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

BlocksMap may throw NullPointerException during shutdown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.0-alpha1
    • 2.1.0-beta
    • namenode
    • None
    • Reviewed

    Description

      TestBlocksWithNotEnoughRacks may fail occasionally due to the bug:

      java.lang.AssertionError: Test resulted in an unexpected exit
      	at org.apache.hadoop.hdfs.MiniDFSCluster.shutdown(MiniDFSCluster.java:1416)
      	at org.apache.hadoop.hdfs.server.blockmanagement.TestBlocksWithNotEnoughRacks.__CLR3_0_226e5kj1ntz(TestBlocksWithNotEnoughRacks.java:373)
      	at org.apache.hadoop.hdfs.server.blockmanagement.TestBlocksWithNotEnoughRacks.testReduceReplFactorDueToRejoinRespectsRackPolicy(TestBlocksWithNotEnoughRacks.java:330)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	...
      

      At the end of the log:

      2013-05-10 13:05:53,828 FATAL hdfs.MiniDFSCluster (MiniDFSCluster.java:shutdown(1413)) - Test resulted in an unexpected exit
      org.apache.hadoop.util.ExitUtil$ExitException: java.lang.NullPointerException
      	at org.apache.hadoop.hdfs.server.blockmanagement.BlocksMap.getBlockCollection(BlocksMap.java:77)
      	at org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.computeReplicationWorkForBlocks(BlockManager.java:1153)
      	at org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.computeReplicationWork(BlockManager.java:1128)
      	at org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.computeDatanodeWork(BlockManager.java:3127)
      	at org.apache.hadoop.hdfs.server.blockmanagement.BlockManager$ReplicationMonitor.run(BlockManager.java:3089)
      	at java.lang.Thread.run(Thread.java:662)
      	...
      

      Attachments

        1. HDFS-4813.001.patch
          3 kB
          Jing Zhao
        2. HDFS-4813.002.patch
          2 kB
          Jing Zhao

        Issue Links

          Activity

            People

              jingzhao Jing Zhao
              szetszwo Tsz-wo Sze
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: