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

Possible NPE in BlockManager$StorageInfoDefragmenter#scanAndCompactStorages

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 3.0.0-beta1
    • namenode
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment