You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by la...@apache.org on 2014/12/30 05:39:48 UTC

hbase git commit: HBASE-12776 SpliTransaction: Log number of files to be split.

Repository: hbase
Updated Branches:
  refs/heads/0.98 3197a631d -> 3c5645f2b


HBASE-12776 SpliTransaction: Log number of files to be split.


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

Branch: refs/heads/0.98
Commit: 3c5645f2b035af464ea0cf6181b241e1a002a501
Parents: 3197a63
Author: Lars Hofhansl <la...@apache.org>
Authored: Mon Dec 29 20:38:09 2014 -0800
Committer: Lars Hofhansl <la...@apache.org>
Committed: Mon Dec 29 20:39:28 2014 -0800

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/regionserver/SplitTransaction.java  | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/3c5645f2/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/SplitTransaction.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/SplitTransaction.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/SplitTransaction.java
index a35fd18..f4d0473 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/SplitTransaction.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/SplitTransaction.java
@@ -823,6 +823,7 @@ public class SplitTransaction {
       // no file needs to be splitted.
       return new Pair<Integer, Integer>(0,0);
     }
+    LOG.info("Preparing to split " + nbFiles + " storefiles for region " + this.parent);
     ThreadFactoryBuilder builder = new ThreadFactoryBuilder();
     builder.setNameFormat("StoreFileSplitter-%1$d");
     ThreadFactory factory = builder.build();
@@ -872,6 +873,10 @@ public class SplitTransaction {
       }
     }
 
+    if (LOG.isDebugEnabled()) {
+      LOG.debug("Split storefiles for region " + this.parent + " Daugther A: " + created_a
+          + " storefiles, Daugther B: " + created_b + " storefiles.");
+    }
     return new Pair<Integer, Integer>(created_a, created_b);
   }