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

use fsck tools for EC blockId will throw NullPointerException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0
    • Fix Version/s: None
    • Component/s: erasure-coding
    • Labels:
      None

      Description

       

      when EC file have some block missing, use fsck tool for EC blockId whil throw NullPointerException

      hdfs fsck -blockId blk_-9223372036800049376 
      
      fsck information is:
      
      Block Id: blk_-9223372036800049376
      Block belongs to: /logdata/test.lzo
      No. of Expected Replica: 9
      No. of live Replica: 5
      No. of excess Replica: 0
      No. of stale Replica: 0
      No. of decommissioned Replica: 0
      No. of decommissioning Replica: 0
      No. of corrupted Replica: 0
      null
      

      namenode will throw NullPointerException:

      2018-11-26 15:59:35,107 WARN org.apache.hadoop.hdfs.server.namenode.NameNode: Fsck on blockId 'blk_-9223372036800049376
      java.lang.NullPointerException
      at org.apache.hadoop.hdfs.server.namenode.NamenodeFsck.blockIdCK(NamenodeFsck.java:270)
      at org.apache.hadoop.hdfs.server.namenode.NamenodeFsck.fsck(NamenodeFsck.java:313)
      at org.apache.hadoop.hdfs.server.namenode.FsckServlet$1.run(FsckServlet.java:67)
      

       

        Attachments

          Activity

            People

            • Assignee:
              aihuaxu Aihua Xu
              Reporter:
              luoge123 luoge123
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: