hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-17182) Memory leak from openScanner of HBase thrift2
Date Mon, 28 Nov 2016 11:59:58 GMT

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

Ted Yu commented on HBASE-17182:
--------------------------------

The timestamp can be recorded in the map:
{code}
  private int addScanner(ResultScanner scanner) {
    int id = nextScannerId.getAndIncrement();
    scannerMap.put(id, scanner);
{code}
Each time the scanner is returned:
{code}
  private ResultScanner getScanner(int id) {
    return scannerMap.get(id);
{code}
The timestamp should be updated.

> Memory leak from openScanner of HBase thrift2
> ---------------------------------------------
>
>                 Key: HBASE-17182
>                 URL: https://issues.apache.org/jira/browse/HBASE-17182
>             Project: HBase
>          Issue Type: Bug
>          Components: Thrift
>            Reporter: 易剑
>
> Client call openScanner, but client (coredump or others) not closeScanner, the scanner
will not be removed from scannerMap.



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

Mime
View raw message