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

Voyta commented on HBASE-20433:
-------------------------------

Hi,

I have a heap dump but I cannot share it as it contains sensitive information. 
So far it seems S3AFileSystem objects are removed from heap but close() method 
is not called which causes accumulation of metrics as described in 
https://issues.apache.org/jira/browse/HADOOP-15392

One possibility would be to add finalize() method but it might a bit dirty hack.

> HBase Export Snapshot utility does not close FileSystem instances
> -----------------------------------------------------------------
>
>                 Key: HBASE-20433
>                 URL: https://issues.apache.org/jira/browse/HBASE-20433
>             Project: HBase
>          Issue Type: Bug
>          Components: Client, fs, snapshots
>    Affects Versions: 1.2.6, 1.4.3
>            Reporter: Voyta
>            Priority: Major
>
> It seems org.apache.hadoop.hbase.snapshot.ExportSnapshot disallows FileSystem 
> instance caching.
> When verifySnapshot method is being run it calls often methods like 
> org.apache.hadoop.hbase.util.FSUtils#getRootDir that instantiate FileSystem 
> but never calls org.apache.hadoop.fs.FileSystem#close method. This behaviour 
> allows allocation of unwanted objects potentially causing memory leaks.
> Related issue: https://issues.apache.org/jira/browse/HADOOP-15392
>  
> Expectation:
>  * HBase should properly release/close all objects, especially FileSystem 
> instances.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to