[
https://issues.apache.org/jira/browse/HBASE-12413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gabriel Reid updated HBASE-12413:
---------------------------------
Attachment: HBASE-12413.v3.patch
Here's a slightly altered patch that removes the need to change the visibility
of CellComparator.calculateHashForKeyValue, and adds some basic testing of the
equals and hashCode methods on KeyValue. I'll try to get a new QA run on this
and hopefully it'll be clean.
> Mismatch in the equals and hashcode methods of KeyValue
> -------------------------------------------------------
>
> Key: HBASE-12413
> URL: https://issues.apache.org/jira/browse/HBASE-12413
> Project: HBase
> Issue Type: Bug
> Reporter: Jingcheng Du
> Assignee: Jingcheng Du
> Priority: Minor
> Attachments: HBASE-12413-V2.diff, HBASE-12413.diff,
> HBASE-12413.v3.patch
>
>
> In the equals method of KeyValue only row key is compared, and in the
> hashcode method all bacing bytes are calculated. This breaks the Java rule.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)