[ https://issues.apache.org/jira/browse/HBASE-22937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16923288#comment-16923288 ]
Hudson commented on HBASE-22937: -------------------------------- Results for branch branch-1.4 [build #996 on builds.a.o|https://builds.apache.org/job/HBase%20Nightly/job/branch-1.4/996/]: (x) *{color:red}-1 overall{color}* ---- details (if available): (x) {color:red}-1 general checks{color} -- For more information [see general report|https://builds.apache.org/job/HBase%20Nightly/job/branch-1.4/996//General_Nightly_Build_Report/] (x) {color:red}-1 jdk7 checks{color} -- For more information [see jdk7 report|https://builds.apache.org/job/HBase%20Nightly/job/branch-1.4/996//JDK7_Nightly_Build_Report/] (x) {color:red}-1 jdk8 hadoop2 checks{color} -- For more information [see jdk8 (hadoop2) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-1.4/996//JDK8_Nightly_Build_Report_(Hadoop2)/] (/) {color:green}+1 source release artifact{color} -- See build output for details. > The RawBytesComparator in branch-1 have wrong comparison order > -------------------------------------------------------------- > > Key: HBASE-22937 > URL: https://issues.apache.org/jira/browse/HBASE-22937 > Project: HBase > Issue Type: Bug > Reporter: Zheng Hu > Assignee: Zheng Hu > Priority: Major > > When digging the HBASE-22862, we found a bug in > RawBytesComparator#compareOnlyKeyPortion (although it's unrelated to the > corruption in HBASE-22862). > {code} > @Override > @VisibleForTesting > public int compareOnlyKeyPortion(Cell left, Cell right) { > // ... > return (0xff & left.getTypeByte()) - (0xff & right.getTypeByte()); > } > {code} > Here should be (0xff & right.getTypeByte()) - (0xff & left.getTypeByte()) I > think. > I can see the BloomFilter or HFile v2 are still using the comparator in > branch-1 (but not in branch-2). Maybe we can just remove the class (if some > HFile encoded with this comparator, then mapping to the correct KVComparator > just like 2.x), or fix the bug in current RawBytesComparator. -- This message was sent by Atlassian Jira (v8.3.2#803003)