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 0E8BD200C25 for ; Fri, 24 Feb 2017 10:16:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0CFBE160B69; Fri, 24 Feb 2017 09:16:00 +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 5857C160B5C for ; Fri, 24 Feb 2017 10:15:59 +0100 (CET) Received: (qmail 91205 invoked by uid 500); 24 Feb 2017 09:15:57 -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 91194 invoked by uid 99); 24 Feb 2017 09:15:57 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2017 09:15:57 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 4FFB7C1362 for ; Fri, 24 Feb 2017 09:15:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id jShUfnEZFL-V for ; Fri, 24 Feb 2017 09:15:56 +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 3F3D85F647 for ; Fri, 24 Feb 2017 09:15:56 +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 A6A5BE053A for ; Fri, 24 Feb 2017 09:15:44 +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 631AE2412B for ; Fri, 24 Feb 2017 09:15:44 +0000 (UTC) Date: Fri, 24 Feb 2017 09:15:44 +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: Fri, 24 Feb 2017 09:16:00 -0000 [ https://issues.apache.org/jira/browse/HBASE-17688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jingcheng Du updated HBASE-17688: --------------------------------- Affects Version/s: (was: 1.1.2) 2.0.0 1.3.0 1.2.4 0.98.24 1.1.8 > 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.8 > Reporter: Ravi Ahuj > Assignee: Jingcheng Du > Priority: Minor > Attachments: HBASE-17688.master.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)