[
https://issues.apache.org/jira/browse/HBASE-4619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14266298#comment-14266298
]
Cosmin Lehene commented on HBASE-4619:
--------------------------------------
[[email protected]] [~apurtell]
> TableOutputFormat.close() interferes with HBase clients in same JVM
> -------------------------------------------------------------------
>
> Key: HBASE-4619
> URL: https://issues.apache.org/jira/browse/HBASE-4619
> Project: HBase
> Issue Type: Bug
> Reporter: Dave Revell
> Labels: close, delete
>
> This appears in TableOutputFormat.java:
> {code}
> @Override
> public void close(TaskAttemptContext context)
> throws IOException {
> table.flushCommits();
> // The following call will shutdown all connections to the cluster from
> // this JVM. It will close out our zk session otherwise zk wil log
> // expired sessions rather than closed ones. If any other HTable
> instance
> // running in this JVM, this next call will cause it damage.
> Presumption
> // is that the above this.table is only instance.
> HConnectionManager.deleteAllConnections(true);
> }
> {code}
> It's not a safe assumption that a single TableOutputFormat is the only HBase
> client in a JVM.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)