[jira] [Created] (HBASE-18180) Possible connection leak while closing BufferedMutator in TableOutputFormat

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Created] (HBASE-18180) Possible connection leak while closing BufferedMutator in TableOutputFormat

JIRA jira@apache.org
Pankaj Kumar created HBASE-18180:
------------------------------------

             Summary: Possible connection leak while closing BufferedMutator in TableOutputFormat
                 Key: HBASE-18180
                 URL: https://issues.apache.org/jira/browse/HBASE-18180
             Project: HBase
          Issue Type: Bug
          Components: mapreduce
    Affects Versions: 1.3.1, 1.4.0, 1.3.2
            Reporter: Pankaj Kumar
            Assignee: Pankaj Kumar


In TableOutputFormat, connection will not be released in case when "mutator.close()" throws exception.

org.apache.hadoop.hbase.mapreduce.TableOutputFormat
{code}
    public void close(TaskAttemptContext context)
    throws IOException {
      mutator.close();
      connection.close();
    }
{code}

org.apache.hadoop.hbase.mapred.TableOutputFormat
{code}
    public void close(Reporter reporter) throws IOException {
      this.m_mutator.close();
      if (connection != null) {
        connection.close();
        connection = null;
      }
    }
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
Loading...