[
https://issues.apache.org/jira/browse/HDFS-2969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13210509#comment-13210509
]
Todd Lipcon commented on HDFS-2969:
-----------------------------------
Following code is obviously wrong:
{code}
ExtendedBlock b = (ExtendedBlock)o;
return b.block.equals(block) || b.poolId.equals(poolId);
{code}
> ExtendedBlock.equals is incorrectly implemented
> -----------------------------------------------
>
> Key: HDFS-2969
> URL: https://issues.apache.org/jira/browse/HDFS-2969
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: data-node
> Affects Versions: 0.23.0
> Reporter: Todd Lipcon
> Assignee: Todd Lipcon
> Priority: Critical
>
> The {{ExtendedBlock.equals}} method incorrectly returns true for any two
> blocks in the same block pool, regardless of block ID.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira