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 53C72200C25 for ; Fri, 24 Feb 2017 10:09:08 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5234D160B69; Fri, 24 Feb 2017 09:09:08 +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 9B30D160B5C for ; Fri, 24 Feb 2017 10:09:07 +0100 (CET) Received: (qmail 79906 invoked by uid 500); 24 Feb 2017 09:09:06 -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 79895 invoked by uid 99); 24 Feb 2017 09:09:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2017 09:09:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 16403C69E6 for ; Fri, 24 Feb 2017 09:09:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.451 X-Spam-Level: * X-Spam-Status: No, score=1.451 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id D7OVBwvwDGcP for ; Fri, 24 Feb 2017 09:09:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id E14AE5FB5D for ; Fri, 24 Feb 2017 09:09:04 +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 9C6F4E0608 for ; Fri, 24 Feb 2017 09:08: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 111F12412B for ; Fri, 24 Feb 2017 09:08:44 +0000 (UTC) Date: Fri, 24 Feb 2017 09:08: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:09:08 -0000 [ https://issues.apache.org/jira/browse/HBASE-17688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jingcheng Du updated HBASE-17688: --------------------------------- Attachment: HBASE-17688.master.patch > 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: 1.1.2 > 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)