hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From la...@apache.org
Subject [1/2] hbase git commit: HBASE-12776 SpliTransaction: Log number of files to be split.
Date Tue, 30 Dec 2014 04:39:56 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 619f94f11 -> 6a7c619e1
  refs/heads/master 0d094d877 -> 0513a21dc


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

Branch: refs/heads/master
Commit: 0513a21dc8b86f57b5a6c1b742904821632f77f7
Parents: 0d094d8
Author: Lars Hofhansl <larsh@apache.org>
Authored: Mon Dec 29 20:38:09 2014 -0800
Committer: Lars Hofhansl <larsh@apache.org>
Committed: Mon Dec 29 20:38:09 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/0513a21d/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 feb1f70..dbcf033 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
@@ -611,6 +611,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();
@@ -660,6 +661,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);
   }
 


Mime
View raw message