HDFS-3194. DataNode block scanner is running too frequently. Contributed by Andy Isaacson
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1373932 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a6091a6a82
commit
ac63450f02
|
@ -458,6 +458,9 @@ Release 2.0.1-alpha - UNRELEASED
|
|||
|
||||
HDFS-3048. Small race in BlockManager#close. (Andy Isaacson via eli)
|
||||
|
||||
HDFS-3194. DataNode block scanner is running too frequently.
|
||||
(Andy Isaacson via eli)
|
||||
|
||||
BREAKDOWN OF HDFS-3042 SUBTASKS
|
||||
|
||||
HDFS-2185. HDFS portion of ZK-based FailoverController (todd)
|
||||
|
|
|
@ -554,11 +554,9 @@ class BlockPoolSliceScanner {
|
|||
}
|
||||
|
||||
private synchronized void startNewPeriod() {
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Starting a new period : work left in prev period : "
|
||||
LOG.info("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;
|
||||
|
@ -566,7 +564,6 @@ class BlockPoolSliceScanner {
|
|||
}
|
||||
|
||||
void scanBlockPoolSlice() {
|
||||
startNewPeriod();
|
||||
// Create a new processedBlocks structure
|
||||
processedBlocks = new HashMap<Long, Integer>();
|
||||
if (!assignInitialVerificationTimes()) {
|
||||
|
|
Loading…
Reference in New Issue