Yongjun Zhang created HDFS-9404:
-----------------------------------

             Summary: Findbugs issue reported in 
BlockRecoveryWorker$RecoveryTaskContiguous.recover()
                 Key: HDFS-9404
                 URL: https://issues.apache.org/jira/browse/HDFS-9404
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: HDFS
            Reporter: Yongjun Zhang


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

Reported:

Code    Warning
EC      Call to 
org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration.equals(org.apache.hadoop.hdfs.protocol.DatanodeInfo)
 in 
org.apache.hadoop.hdfs.server.datanode.BlockRecoveryWorker$RecoveryTaskContiguous.recover()

Details

EC_UNRELATED_TYPES: Call to equals() comparing different types

This method calls equals(Object) on two references of different class types and 
analysis suggests they will be to objects of different classes at runtime. 
Further, examination of the equals methods that would be invoked suggest that 
either this call will always return false, or else the equals method is not be 
symmetric (which is a property required by the contract for equals in class 
Object).




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to