You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ap...@apache.org on 2014/09/16 22:56:58 UTC
[1/3] git commit: HBASE-11994 PutCombiner floods the M/R log with
repeated log messages (Aditya Kishore)
Repository: hbase
Updated Branches:
refs/heads/0.98 4c258e9f3 -> ac2901956
refs/heads/branch-1 757a0952c -> ddd44ecb6
refs/heads/master f249f242b -> 2c28ea06d
HBASE-11994 PutCombiner floods the M/R log with repeated log messages (Aditya Kishore)
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/2c28ea06
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/2c28ea06
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/2c28ea06
Branch: refs/heads/master
Commit: 2c28ea06dcfbc58e22170172356dd5542d220f8e
Parents: f249f24
Author: Andrew Purtell <ap...@apache.org>
Authored: Tue Sep 16 13:55:14 2014 -0700
Committer: Andrew Purtell <ap...@apache.org>
Committed: Tue Sep 16 13:55:14 2014 -0700
----------------------------------------------------------------------
.../java/org/apache/hadoop/hbase/mapreduce/PutCombiner.java | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/2c28ea06/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutCombiner.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutCombiner.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutCombiner.java
index f10836b..a7f0f6f 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutCombiner.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutCombiner.java
@@ -80,15 +80,20 @@ public class PutCombiner<K> extends Reducer<K, Put, K, Put> {
}
if (cnt % 10 == 0) context.setStatus("Combine " + cnt);
if (curSize > threshold) {
- LOG.info(String.format("Combined %d Put(s) into %d.", cnt, 1));
+ if (LOG.isDebugEnabled()) {
+ LOG.debug(String.format("Combined %d Put(s) into %d.", cnt, 1));
+ }
context.write(row, put);
put = null;
+ curSize = 0;
cnt = 0;
}
}
}
if (put != null) {
- LOG.info(String.format("Combined %d Put(s) into %d.", cnt, 1));
+ if (LOG.isDebugEnabled()) {
+ LOG.debug(String.format("Combined %d Put(s) into %d.", cnt, 1));
+ }
context.write(row, put);
}
}
[3/3] git commit: HBASE-11994 PutCombiner floods the M/R log with
repeated log messages (Aditya Kishore)
Posted by ap...@apache.org.
HBASE-11994 PutCombiner floods the M/R log with repeated log messages (Aditya Kishore)
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/ac290195
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/ac290195
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/ac290195
Branch: refs/heads/0.98
Commit: ac29019563c937c0a33ea1620096b91fe50cd7a2
Parents: 4c258e9
Author: Andrew Purtell <ap...@apache.org>
Authored: Tue Sep 16 13:55:14 2014 -0700
Committer: Andrew Purtell <ap...@apache.org>
Committed: Tue Sep 16 13:55:32 2014 -0700
----------------------------------------------------------------------
.../java/org/apache/hadoop/hbase/mapreduce/PutCombiner.java | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/ac290195/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutCombiner.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutCombiner.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutCombiner.java
index f10836b..a7f0f6f 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutCombiner.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutCombiner.java
@@ -80,15 +80,20 @@ public class PutCombiner<K> extends Reducer<K, Put, K, Put> {
}
if (cnt % 10 == 0) context.setStatus("Combine " + cnt);
if (curSize > threshold) {
- LOG.info(String.format("Combined %d Put(s) into %d.", cnt, 1));
+ if (LOG.isDebugEnabled()) {
+ LOG.debug(String.format("Combined %d Put(s) into %d.", cnt, 1));
+ }
context.write(row, put);
put = null;
+ curSize = 0;
cnt = 0;
}
}
}
if (put != null) {
- LOG.info(String.format("Combined %d Put(s) into %d.", cnt, 1));
+ if (LOG.isDebugEnabled()) {
+ LOG.debug(String.format("Combined %d Put(s) into %d.", cnt, 1));
+ }
context.write(row, put);
}
}
[2/3] git commit: HBASE-11994 PutCombiner floods the M/R log with
repeated log messages (Aditya Kishore)
Posted by ap...@apache.org.
HBASE-11994 PutCombiner floods the M/R log with repeated log messages (Aditya Kishore)
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/ddd44ecb
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/ddd44ecb
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/ddd44ecb
Branch: refs/heads/branch-1
Commit: ddd44ecb66bee60570b71fd80b4b0187c5441966
Parents: 757a095
Author: Andrew Purtell <ap...@apache.org>
Authored: Tue Sep 16 13:55:14 2014 -0700
Committer: Andrew Purtell <ap...@apache.org>
Committed: Tue Sep 16 13:55:25 2014 -0700
----------------------------------------------------------------------
.../java/org/apache/hadoop/hbase/mapreduce/PutCombiner.java | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/ddd44ecb/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutCombiner.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutCombiner.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutCombiner.java
index f10836b..a7f0f6f 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutCombiner.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/PutCombiner.java
@@ -80,15 +80,20 @@ public class PutCombiner<K> extends Reducer<K, Put, K, Put> {
}
if (cnt % 10 == 0) context.setStatus("Combine " + cnt);
if (curSize > threshold) {
- LOG.info(String.format("Combined %d Put(s) into %d.", cnt, 1));
+ if (LOG.isDebugEnabled()) {
+ LOG.debug(String.format("Combined %d Put(s) into %d.", cnt, 1));
+ }
context.write(row, put);
put = null;
+ curSize = 0;
cnt = 0;
}
}
}
if (put != null) {
- LOG.info(String.format("Combined %d Put(s) into %d.", cnt, 1));
+ if (LOG.isDebugEnabled()) {
+ LOG.debug(String.format("Combined %d Put(s) into %d.", cnt, 1));
+ }
context.write(row, put);
}
}