[jira] [Updated] (HBASE-17688) MultiRowRangeFilter not working correctly if given same start and stop RowKey

2017-11-09 Thread Andrew Purtell (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-17688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Purtell updated HBASE-17688:
---
Fix Version/s: 1.4.0

> 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.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.4.0, 1.3.1, 1.2.5, 1.1.10
>
> Attachments: HBASE-17688.branch-1.x.patch, 
> HBASE-17688.master-v1.patch, 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.4.14#64029)


[jira] [Updated] (HBASE-17688) MultiRowRangeFilter not working correctly if given same start and stop RowKey

2017-02-27 Thread Jingcheng Du (JIRA)

 [ 
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: 2.0.0)

> 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.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)


[jira] [Updated] (HBASE-17688) MultiRowRangeFilter not working correctly if given same start and stop RowKey

2017-02-27 Thread Jingcheng Du (JIRA)

 [ 
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)


[jira] [Updated] (HBASE-17688) MultiRowRangeFilter not working correctly if given same start and stop RowKey

2017-02-27 Thread Jingcheng Du (JIRA)

 [ 
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.8)
   1.1.9

> 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
> 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)


[jira] [Updated] (HBASE-17688) MultiRowRangeFilter not working correctly if given same start and stop RowKey

2017-02-27 Thread Jingcheng Du (JIRA)

 [ 
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-v1.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: 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.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)


[jira] [Updated] (HBASE-17688) MultiRowRangeFilter not working correctly if given same start and stop RowKey

2017-02-27 Thread Jingcheng Du (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-17688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jingcheng Du updated HBASE-17688:
-
Attachment: (was: HBASE-17688.master-v1.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: 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.branch-1.x.patch, 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)


[jira] [Updated] (HBASE-17688) MultiRowRangeFilter not working correctly if given same start and stop RowKey

2017-02-27 Thread Jingcheng Du (JIRA)

 [ 
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.branch-1.x.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: 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.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)


[jira] [Updated] (HBASE-17688) MultiRowRangeFilter not working correctly if given same start and stop RowKey

2017-02-27 Thread Jingcheng Du (JIRA)

 [ 
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-v1.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: 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, 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)


[jira] [Updated] (HBASE-17688) MultiRowRangeFilter not working correctly if given same start and stop RowKey

2017-02-24 Thread Jingcheng Du (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-17688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jingcheng Du updated HBASE-17688:
-
Status: Patch Available  (was: Open)

> 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.8, 0.98.24, 1.2.4, 1.3.0, 2.0.0
>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)


[jira] [Updated] (HBASE-17688) MultiRowRangeFilter not working correctly if given same start and stop RowKey

2017-02-24 Thread Jingcheng Du (JIRA)

 [ 
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)


[jira] [Updated] (HBASE-17688) MultiRowRangeFilter not working correctly if given same start and stop RowKey

2017-02-24 Thread Jingcheng Du (JIRA)

 [ 
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)


[jira] [Updated] (HBASE-17688) MultiRowRangeFilter not working correctly if given same start and stop RowKey

2017-02-24 Thread Jingcheng Du (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-17688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jingcheng Du updated HBASE-17688:
-
Attachment: (was: 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
>
>   
>   
> 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)


[jira] [Updated] (HBASE-17688) MultiRowRangeFilter not working correctly if given same start and stop RowKey

2017-02-24 Thread Jingcheng Du (JIRA)

 [ 
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

Upload the patch for mater branch for review.

> 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)