hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yongjun Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-9404) Findbugs issue reported in BlockRecoveryWorker$RecoveryTaskContiguous.recover()
Date Mon, 09 Nov 2015 22:08:11 GMT
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



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()


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

View raw message