Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 40062200C61 for ; Tue, 11 Apr 2017 03:41:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3E8D2160BA5; Tue, 11 Apr 2017 01:41:46 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 86C2A160B99 for ; Tue, 11 Apr 2017 03:41:45 +0200 (CEST) Received: (qmail 9546 invoked by uid 500); 11 Apr 2017 01:41:44 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 9535 invoked by uid 99); 11 Apr 2017 01:41:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Apr 2017 01:41:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3812518F4CD for ; Tue, 11 Apr 2017 01:41:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id TNh_BzePjpSg for ; Tue, 11 Apr 2017 01:41:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 369875FC6F for ; Tue, 11 Apr 2017 01:41:43 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 8FA1FE0D55 for ; Tue, 11 Apr 2017 01:41:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id BFB702406D for ; Tue, 11 Apr 2017 01:41:41 +0000 (UTC) Date: Tue, 11 Apr 2017 01:41:41 +0000 (UTC) From: "Chia-Ping Tsai (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HBASE-17897) StripeStoreFileManager#nonOpenRowCompare use the wrong comparison function MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 11 Apr 2017 01:41:46 -0000 [ https://issues.apache.org/jira/browse/HBASE-17897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15963727#comment-15963727 ] Chia-Ping Tsai edited comment on HBASE-17897 at 4/11/17 1:41 AM: ----------------------------------------------------------------- bq. The byte arrays are row bytes only? There are no other components of the KeyValue serialized? If so, +1. Another explanation is that the original comparison function is the Bytes.compareTo(byte[]. int, int, byte[], int, int); see HBASE-13998. was (Author: chia7712): bq. The byte arrays are row bytes only? There are no other components of the KeyValue serialized? If so, +1. A another explanation is that the original comparison function is the Bytes.compareTo(byte[]. int, int, byte[], int, int); see HBASE-13998. > StripeStoreFileManager#nonOpenRowCompare use the wrong comparison function > -------------------------------------------------------------------------- > > Key: HBASE-17897 > URL: https://issues.apache.org/jira/browse/HBASE-17897 > Project: HBase > Issue Type: Sub-task > Reporter: Chia-Ping Tsai > Assignee: Chia-Ping Tsai > Attachments: HBASE-17897.failed.patch, HBASE-17897.v0.patch, HBASE-17897.v0.patch > > > {noformat} > private final int nonOpenRowCompare(byte[] k1, byte[] k2) { > assert !isOpen(k1) && !isOpen(k2); > return cellComparator.compareRows(new KeyOnlyKeyValue(k1), k2, 0, k2.length); > } > {noformat} > The inputs aren't KeyValue format, so it is wrong to use KeyOnlyKeyValue to parse the row. -- This message was sent by Atlassian JIRA (v6.3.15#6346)