HDFS-9618. Fix mismatch between log level and guard in BlockManager#computeRecoveryWorkForBlocks (iwasakims)
This commit is contained in:
parent
e30668106d
commit
ae9c61ff0a
@ -951,6 +951,9 @@ Release 2.9.0 - UNRELEASED
|
||||
HDFS-9601. NNThroughputBenchmark.BlockReportStats should handle
|
||||
NotReplicatedYetException on adding block (iwasakims)
|
||||
|
||||
HDFS-9618. Fix mismatch between log level and guard in
|
||||
BlockManager#computeRecoveryWorkForBlocks (iwasakims)
|
||||
|
||||
HDFS-9621. getListing wrongly associates Erasure Coding policy to pre-existing
|
||||
replicated files under an EC directory. (jing9)
|
||||
|
||||
|
@ -1488,7 +1488,7 @@ int computeRecoveryWorkForBlocks(List<List<BlockInfo>> blocksToRecover) {
|
||||
namesystem.writeUnlock();
|
||||
}
|
||||
|
||||
if (blockLog.isInfoEnabled()) {
|
||||
if (blockLog.isDebugEnabled()) {
|
||||
// log which blocks have been scheduled for replication
|
||||
for(BlockRecoveryWork rw : recovWork){
|
||||
DatanodeStorageInfo[] targets = rw.getTargets();
|
||||
@ -1502,8 +1502,7 @@ int computeRecoveryWorkForBlocks(List<List<BlockInfo>> blocksToRecover) {
|
||||
rw.getBlock(), targetList);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (blockLog.isDebugEnabled()) {
|
||||
|
||||
blockLog.debug("BLOCK* neededReplications = {} pendingReplications = {}",
|
||||
neededReplications.size(), pendingReplications.size());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user