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:25:49 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.1 e585cd8e1 -> 48a3d1013


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/48a3d101
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/48a3d101
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/48a3d101

Branch: refs/heads/branch-1.1
Commit: 48a3d1013d2a5d05ac3e45fd4e2ab29bb9389b6c
Parents: e585cd8
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:23:15 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/48a3d101/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