Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
Reviewed
Description
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]