[
https://issues.apache.org/jira/browse/HBASE-16062?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15337349#comment-15337349
]
Ted Yu commented on HBASE-16062:
--------------------------------
Nice finding, Vlad.
{code}
317 if (stream != null) {
318 stream.close(); 318 stream.close();
319 } 319 }
320 if (reader != null) {
321 reader.close();
322 }
{code}
What if stream.close() throws exception ?
> Improper error handling in WAL Reader/Writer creation
> -----------------------------------------------------
>
> Key: HBASE-16062
> URL: https://issues.apache.org/jira/browse/HBASE-16062
> Project: HBase
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Vladimir Rodionov
> Assignee: Vladimir Rodionov
> Fix For: 2.0.0
>
> Attachments: HBASE-16062-v1.patch
>
>
> If creation of WAL reader/ writer fails for some reason RS may leak hanging
> socket in CLOSE_WAIT state.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)