Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9E89918B54 for ; Tue, 16 Feb 2016 14:37:18 +0000 (UTC) Received: (qmail 92601 invoked by uid 500); 16 Feb 2016 14:37:18 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 92556 invoked by uid 500); 16 Feb 2016 14:37:18 -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 92542 invoked by uid 99); 16 Feb 2016 14:37:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Feb 2016 14:37:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 1AFF62C1F58 for ; Tue, 16 Feb 2016 14:37:18 +0000 (UTC) Date: Tue, 16 Feb 2016 14:37:18 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-15274) ClientSideRegionScanner's reaction to Scan#setBatch is not consistent between HBase versions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-15274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15148669#comment-15148669 ] stack commented on HBASE-15274: ------------------------------- Would you have a patch please [~y0un5]? Thanks. > 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: 1.0.3, 1.1.3, 0.98.17 > 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)