hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-15391 Avoid too large "deleted from META" info log (Liu Shaohui)
Date Fri, 30 Jun 2017 10:54:06 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-2 619dcf24f -> 09cafb116


HBASE-15391 Avoid too large "deleted from META" info log (Liu Shaohui)


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

Branch: refs/heads/branch-2
Commit: 09cafb11635bcf8c5efaed722254d5dcdd6b454c
Parents: 619dcf2
Author: Michael Stack <stack@apache.org>
Authored: Fri Jun 30 03:53:33 2017 -0700
Committer: Michael Stack <stack@apache.org>
Committed: Fri Jun 30 03:53:58 2017 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/MetaTableAccessor.java   | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/09cafb11/hbase-client/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java
index 3870fd1..32f66b3 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java
@@ -1977,7 +1977,10 @@ public class MetaTableAccessor {
       deletes.add(e);
     }
     deleteFromMetaTable(connection, deletes);
-    LOG.info("Deleted " + regionsInfo);
+    LOG.info("Deleted " + regionInfos.size() + " regions from META");
+    if (LOG.isDebugEnabled()) {
+      LOG.debug("Deleted regions: " + regionInfos);
+    }
   }
 
   /**
@@ -2029,7 +2032,10 @@ public class MetaTableAccessor {
     //
     // HBASE-13875 uses master timestamp for the mutations. The 20ms sleep is not needed
     addRegionsToMeta(connection, regionInfos, regionReplication, now+1);
-    LOG.info("Overwritten " + regionInfos);
+    LOG.info("Overwritten " + regionInfos.size() + " regions to Meta");
+    if (LOG.isDebugEnabled()) {
+      LOG.debug("Overwritten regions: " + regionInfos);
+    }
   }
 
   /**


Mime
View raw message