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 999E51049A for ; Fri, 19 Jul 2013 21:46:49 +0000 (UTC) Received: (qmail 79726 invoked by uid 500); 19 Jul 2013 21:46:49 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 79697 invoked by uid 500); 19 Jul 2013 21:46:49 -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 79688 invoked by uid 99); 19 Jul 2013 21:46:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jul 2013 21:46:49 +0000 Date: Fri, 19 Jul 2013 21:46:49 +0000 (UTC) From: "Hamed Madani (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-8946) Add a new function to Thrift 2 to open scanner, get results and close scanner 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-8946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hamed Madani updated HBASE-8946: -------------------------------- Attachment: HBASE-8946-V3.patch Updated the patch with extended test. Also removed the following line from hbase.thrift *closeScanner* {code} * Exhausted scanners are closed automatically. {code} > Add a new function to Thrift 2 to open scanner, get results and close scanner > ----------------------------------------------------------------------------- > > Key: HBASE-8946 > URL: https://issues.apache.org/jira/browse/HBASE-8946 > Project: HBase > Issue Type: Sub-task > Components: Thrift > Reporter: Hamed Madani > Labels: thrift2 > Attachments: HBASE-8946.patch, HBASE-8946-V2.patch, HBASE-8946-V3.patch > > > We found, very often we open a scanner , get x number of rows , then close the scanner immediately. The attached patch , add a new function *getScannerResults* that does just that. > Using getScannerResults function reduce number of calls to thrift server. Also since the scanner gets closed immediately, it is less prone to cause memory leak. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira