HDFS-3803. Merging change 1373174 from trunk

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1373182 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Suresh Srinivas 2012-08-15 00:56:32 +00:00
parent 997cd514c7
commit c738a9964b
2 changed files with 6 additions and 1 deletions

View File

@ -203,6 +203,9 @@ Release 2.0.1-alpha - UNRELEASED
HDFS-3765. namenode -initializeSharedEdits should be able to initialize
all shared storages. (Vinay and todd via todd)
HDFS-3803. Change BlockPoolSliceScanner chatty INFO log to DEBUG.
(Andrew Purtell via suresh)
OPTIMIZATIONS
HDFS-2982. Startup performance suffers when there are many edit log

View File

@ -554,9 +554,11 @@ class BlockPoolSliceScanner {
}
private synchronized void startNewPeriod() {
LOG.info("Starting a new period : work left in prev period : "
if (LOG.isDebugEnabled()) {
LOG.debug("Starting a new period : work left in prev period : "
+ String.format("%.2f%%", totalBytesToScan == 0 ? 0
: (bytesLeft * 100.0) / totalBytesToScan));
}
// reset the byte counts :
bytesLeft = totalBytesToScan;