hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhihong Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-6002) Possible chance of resource leak in HlogSplitter
Date Tue, 15 May 2012 21:27:07 GMT

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

Zhihong Yu commented on HBASE-6002:
-----------------------------------

{code}
+              try {
+                wap.w.close();
+              } catch (IOException e) {
+                LOG.debug("Exception while closing the writer :", e);
{code}
The above may produce considerable logs. Can boolean flag, closed, be added to WriterAndPath
so that we don't try to close an already closed writer ?
                
> Possible chance of resource leak in HlogSplitter
> ------------------------------------------------
>
>                 Key: HBASE-6002
>                 URL: https://issues.apache.org/jira/browse/HBASE-6002
>             Project: HBase
>          Issue Type: Bug
>          Components: wal
>    Affects Versions: 0.94.0
>            Reporter: Chinna Rao Lalam
>            Assignee: Chinna Rao Lalam
>         Attachments: HBASE-6002.patch
>
>
> In HLogSplitter.splitLogFileToTemp-Reader(in) is not closed and in finally block in loop
while closing the writers(wap.w) if any exception comes other writers won't close.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message