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

Fix findbugs warning in INodeFile$HeaderFormat.getBlockLayoutRedundancy

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.1.0, 3.0.1
    • Component/s: namenode
    • Labels:
      None
    • Target Version/s:

      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. Lei (Eddy) XuSammi Chen would you please double check?

        Attachments

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

          Issue Links

            Activity

              People

              • Assignee:
                chris.douglas Chris Douglas
                Reporter:
                jojochuang Wei-Chiu Chuang
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: