hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerry...@apache.org
Subject hbase git commit: HBASE-14228 Close BufferedMutator and connection in MultiTableOutputFormat
Date Tue, 18 Aug 2015 20:21:56 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.2 c72816033 -> af8e6f7e5


HBASE-14228 Close BufferedMutator and connection in MultiTableOutputFormat


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/af8e6f7e
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/af8e6f7e
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/af8e6f7e

Branch: refs/heads/branch-1.2
Commit: af8e6f7e585e36a2ea74bad3d0e8a3aa121db2a9
Parents: c728160
Author: Jerry He <jerryjch@apache.org>
Authored: Tue Aug 18 13:01:44 2015 -0700
Committer: Jerry He <jerryjch@apache.org>
Committed: Tue Aug 18 13:01:44 2015 -0700

----------------------------------------------------------------------
 .../apache/hadoop/hbase/mapreduce/MultiTableOutputFormat.java   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/af8e6f7e/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/MultiTableOutputFormat.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/MultiTableOutputFormat.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/MultiTableOutputFormat.java
index 616fa81..2dd52dd 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/MultiTableOutputFormat.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/MultiTableOutputFormat.java
@@ -120,7 +120,10 @@ public class MultiTableOutputFormat extends OutputFormat<ImmutableBytesWritable,
     @Override
     public void close(TaskAttemptContext context) throws IOException {
       for (BufferedMutator mutator : mutatorMap.values()) {
-        mutator.flush();
+        mutator.close();
+      }
+      if (connection != null) {
+        connection.close();
       }
     }
 


Mime
View raw message