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

Findbugs warning caused by HDFS-12487

    XMLWordPrintableJSON

    Details

    • Hadoop Flags:
      Reviewed

      Description

      https://builds.apache.org/job/PreCommit-HDFS-Build/27038/artifact/out/branch-findbugs-hadoop-hdfs-project_hadoop-hdfs-warnings.html

      Redundant nullcheck of block, which is known to be non-null in org.apache.hadoop.hdfs.server.datanode.DiskBalancer$DiskBalancerMover.getBlockToCopy(FsVolumeSpi$BlockIterator, DiskBalancerWorkItem)
      Bug type RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE (click for details) 
      In class org.apache.hadoop.hdfs.server.datanode.DiskBalancer$DiskBalancerMover
      In method org.apache.hadoop.hdfs.server.datanode.DiskBalancer$DiskBalancerMover.getBlockToCopy(FsVolumeSpi$BlockIterator, DiskBalancerWorkItem)
      Value loaded from block
      Return value of org.apache.hadoop.hdfs.server.datanode.fsdataset.FsVolumeSpi$BlockIterator.nextBlock() of type org.apache.hadoop.hdfs.protocol.ExtendedBlock
      Redundant null check at DiskBalancer.java:[line 912]
      

        Attachments

        1. HDFS-14598.001.patch
          2 kB
          Xiaoqiao He

          Activity

            People

            • Assignee:
              hexiaoqiao Xiaoqiao He
              Reporter:
              weichiu Wei-Chiu Chuang
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: