Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
HDFS-9249 precommit jenkins run reported the following issue. The issue was not introduced by HDFS-9249 patch. Filing this jira to report it.
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).
Attachments
Issue Links
- duplicates
-
HDFS-9401 Fix findbugs warnings in BlockRecoveryWorker
- Resolved