[ 
https://issues.apache.org/jira/browse/HBASE-3852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13054006#comment-13054006
 ] 

Ted Yu commented on HBASE-3852:
-------------------------------

In scannerGetList():
{code}
            if (null == results) {
                return new ArrayList<TRowResult>();
            }
{code}
Can we close the scanner before returning ?

We still leave the scanner in scannerMap.
HTable.ClientScanner would check whether the scanner has been closed.

> ThriftServer leaks scanners
> ---------------------------
>
>                 Key: HBASE-3852
>                 URL: https://issues.apache.org/jira/browse/HBASE-3852
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.2
>            Reporter: Jean-Daniel Cryans
>            Priority: Critical
>             Fix For: 0.92.0
>
>
> The scannerMap in ThriftServer relies on the user to clean it by closing the 
> scanner. If that doesn't happen, the ResultScanner will stay in the thrift 
> server's memory and if any pre-fetching was done, it will also start 
> accumulating Results (with all their data).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to