[
https://issues.apache.org/jira/browse/HBASE-8946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lars George updated HBASE-8946:
-------------------------------
Resolution: Fixed
Fix Version/s: 0.94.11
0.95.2
0.98.0
Status: Resolved (was: Patch Available)
Tests pass, looking good. Thanks for the patch as usual Hamed, great work!
Committed to all major branches.
> 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
> Assignee: Hamed Madani
> Labels: thrift2
> Fix For: 0.98.0, 0.95.2, 0.94.11
>
> Attachments: HBASE-8946.patch, HBASE-8946-V2.patch,
> HBASE-8946-V3.patch, HBASE-8946-v4.patch, HBASE-8946-v5-0.94.patch,
> HBASE-8946-v5.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