Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-18180

Possible connection leak while closing BufferedMutator in TableOutputFormat

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.0, 1.3.1, 1.3.2
    • 1.4.0, 1.3.2, 2.0.0-alpha-2, 2.0.0
    • mapreduce
    • None
    • Reviewed

    Description

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

      org.apache.hadoop.hbase.mapreduce.TableOutputFormat

          public void close(TaskAttemptContext context)
          throws IOException {
            mutator.close();
            connection.close();
          }
      

      org.apache.hadoop.hbase.mapred.TableOutputFormat

          public void close(Reporter reporter) throws IOException {
            this.m_mutator.close();
            if (connection != null) {
              connection.close();
              connection = null;
            }
          }
      

      Attachments

        1. HBASE-18180.patch
          2 kB
          Pankaj Kumar
        2. HBASE-18180-branch-1.3.patch
          2 kB
          Pankaj Kumar
        3. HBASE-18180-branch-1.patch
          2 kB
          Pankaj Kumar

        Activity

          People

            pankaj2461 Pankaj Kumar
            pankaj2461 Pankaj Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: