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

Possible NPE in BlockManager$StorageInfoDefragmenter#scanAndCompactStorages

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 3.0.0-beta1
    • Component/s: namenode
    • Labels:
      None

      Description

      Saw NN going down with NPE below:

      ERROR org.apache.hadoop.hdfs.server.blockmanagement.BlockManager: Thread received Runtime exception.
      java.lang.NullPointerException
      at org.apache.hadoop.hdfs.server.blockmanagement.BlockManager$StorageInfoDefragmenter.scanAndCompactStorages(BlockManager.java:3897)
      at org.apache.hadoop.hdfs.server.blockmanagement.BlockManager$StorageInfoDefragmenter.run(BlockManager.java:3852)
      at java.lang.Thread.run(Thread.java:745)
      2017-08-21 22:14:05,303 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1
      2017-08-21 22:14:05,313 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: 
      

      In that version, BlockManager code is:

      3896  try {
      3897           DatanodeStorageInfo storage = datanodeManager.
      3898                 getDatanode(datanodesAndStorages.get(i)).
      3899                getStorageInfo(datanodesAndStorages.get(i + 1));
      3900            if (storage != null) {
      

        Attachments

        1. HDFS-12363.02.patch
          1 kB
          Xiao Chen
        2. HDFS-12363.01.patch
          2 kB
          Xiao Chen

          Issue Links

            Activity

              People

              • Assignee:
                xiaochen Xiao Chen
                Reporter:
                xiaochen Xiao Chen
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: