You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by je...@apache.org on 2015/08/18 22:21:56 UTC
hbase git commit: HBASE-14228 Close BufferedMutator and connection in
MultiTableOutputFormat
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 <je...@apache.org>
Authored: Tue Aug 18 13:01:44 2015 -0700
Committer: Jerry He <je...@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();
}
}