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 D13FF200C3D for ; Tue, 28 Feb 2017 06:08:51 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CFD82160B6C; Tue, 28 Feb 2017 05:08:51 +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 25D24160B60 for ; Tue, 28 Feb 2017 06:08:51 +0100 (CET) Received: (qmail 52866 invoked by uid 500); 28 Feb 2017 05:08:50 -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 52853 invoked by uid 99); 28 Feb 2017 05:08:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2017 05:08:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 709181A57A8 for ; Tue, 28 Feb 2017 05:08:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.547 X-Spam-Level: X-Spam-Status: No, score=-1.547 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-2.999, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id KQUlb8uKUfjR for ; Tue, 28 Feb 2017 05:08:48 +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 9445360E17 for ; Tue, 28 Feb 2017 05:08:48 +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 05D59E0630 for ; Tue, 28 Feb 2017 05:08:46 +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 6318C2413A for ; Tue, 28 Feb 2017 05:08:45 +0000 (UTC) Date: Tue, 28 Feb 2017 05:08:45 +0000 (UTC) From: "Jingcheng Du (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-17688) MultiRowRangeFilter not working correctly if given same start and stop RowKey MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 28 Feb 2017 05:08:52 -0000 [ https://issues.apache.org/jira/browse/HBASE-17688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jingcheng Du updated HBASE-17688: --------------------------------- Resolution: Fixed Hadoop Flags: Reviewed Fix Version/s: 1.1.10 1.2.5 1.3.1 2.0.0 Status: Resolved (was: Patch Available) > MultiRowRangeFilter not working correctly if given same start and stop RowKey > ----------------------------------------------------------------------------- > > Key: HBASE-17688 > URL: https://issues.apache.org/jira/browse/HBASE-17688 > Project: HBase > Issue Type: Bug > Affects Versions: 2.0.0, 1.3.0, 1.2.4, 0.98.24, 1.1.9 > Reporter: Ravi Ahuj > Assignee: Jingcheng Du > Priority: Minor > Fix For: 2.0.0, 1.3.1, 1.2.5, 1.1.10 > > Attachments: HBASE-17688.branch-1.x.patch, HBASE-17688.master.patch, HBASE-17688.master-v1.patch > > > > > try (final Connection conn = ConnectionFactory.createConnection(conf); > final Table scanTable = conn.getTable(table)){ > ArrayList rowRangesList = new ArrayList<>(); > > String startRowkey="abc"; > String stopRowkey="abc"; > rowRangesList.add(new MultiRowRangeFilter.RowRange(startRowkey, true, stopRowkey, true)); > Scan scan = new Scan(); > scan.setFilter(new MultiRowRangeFilter(rowRangesList)); > > ResultScanner scanner=scanTable.getScanner(scan); > > for (Result result : scanner) { > String rowkey=new String(result.getRow()); > System.out.println(rowkey); > > } > } > > In Hbase API of Java, we want to do multiple scans in the table using MultiRowRangeFilter. > When we give multiple filters of startRowKey and stopRowKey, it is not working Properly with same StartRowKey and StopRowkey. > Ideally, it should give only one Row with that Rowkey, but instead it is giving all the rows starting from that Rowkey in that Hbase Table -- This message was sent by Atlassian JIRA (v6.3.15#6346)