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

This commit is contained in:
Lars Hofhansl 2014-12-29 20:38:09 -08:00
parent 0d094d877b
commit 0513a21dc8
1 changed files with 5 additions and 0 deletions

View File

@ -611,6 +611,7 @@ public class SplitTransaction {
// no file needs to be splitted. // no file needs to be splitted.
return new Pair<Integer, Integer>(0,0); return new Pair<Integer, Integer>(0,0);
} }
LOG.info("Preparing to split " + nbFiles + " storefiles for region " + this.parent);
ThreadFactoryBuilder builder = new ThreadFactoryBuilder(); ThreadFactoryBuilder builder = new ThreadFactoryBuilder();
builder.setNameFormat("StoreFileSplitter-%1$d"); builder.setNameFormat("StoreFileSplitter-%1$d");
ThreadFactory factory = builder.build(); 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); return new Pair<Integer, Integer>(created_a, created_b);
} }