hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Youngjoon Kim (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-15274) ClientSideRegionScanner's reaction to Scan#setBatch is not consistent between HBase versions
Date Tue, 16 Feb 2016 13:10:18 GMT
Youngjoon Kim created HBASE-15274:
-------------------------------------

             Summary: ClientSideRegionScanner's reaction to Scan#setBatch is not consistent
between HBase versions
                 Key: HBASE-15274
                 URL: https://issues.apache.org/jira/browse/HBASE-15274
             Project: HBase
          Issue Type: Bug
    Affects Versions: 0.98.17, 1.1.3, 1.0.3
            Reporter: Youngjoon Kim
            Priority: Minor


In 1.1.3, ClientSideRegionScanner calls RegionScannerImpl#next() with single argument, so
it honors Scan#setBatch(through defaultScannerContext in RegionScannerImpl).
{code}
// 1.1.3
public class ClientSideRegionScanner extends AbstractClientScanner {
  ...
  @Override
  public Result next() throws IOException {
    values.clear();
    scanner.nextRaw(values);
    ...
{code}
 

\\
But in 1.0.3 and 0.98.17, ClientSideRegionScanner calls RegionScannerImpl#next() with limit=-1,
so it ignores Scan#setBatch.
{code}
// 1.0.3 and 0.98.17
public class ClientSideRegionScanner extends AbstractClientScanner {
  ...
  @Override
  public Result next() throws IOException {
    values.clear();

    scanner.nextRaw(values, -1); // pass -1 as limit so that we see the whole row.
    ...
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message