You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Yongjun Zhang (JIRA)" <ji...@apache.org> on 2015/11/09 23:08:11 UTC
[jira] [Created] (HDFS-9404) Findbugs issue reported in
BlockRecoveryWorker$RecoveryTaskContiguous.recover()
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)