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

Fix findbugs warning in INodeFile$HeaderFormat.getBlockLayoutRedundancy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.1.0, 3.0.1
    • namenode
    • None

    Description

      It seems HDFS-12840 creates a new findbugs warning.

      Possible null pointer dereference of replication in org.apache.hadoop.hdfs.server.namenode.INodeFile$HeaderFormat.getBlockLayoutRedundancy(BlockType, Short, Byte)
      Bug type NP_NULL_ON_SOME_PATH (click for details)
      In class org.apache.hadoop.hdfs.server.namenode.INodeFile$HeaderFormat
      In method org.apache.hadoop.hdfs.server.namenode.INodeFile$HeaderFormat.getBlockLayoutRedundancy(BlockType, Short, Byte)
      Value loaded from replication
      Dereferenced at INodeFile.java:[line 210]
      Known null at INodeFile.java:[line 207]

      From a quick look at the patch, it seems bogus though. eddyxuSammi would you please double check?

      Attachments

        1. HDFS-12915.00.patch
          11 kB
          Christopher Douglas
        2. HDFS-12915.01.patch
          5 kB
          Christopher Douglas
        3. HDFS-12915.02.patch
          5 kB
          Christopher Douglas

        Issue Links

          Activity

            People

              cdouglas Christopher Douglas
              weichiu Wei-Chiu Chuang
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: