HDFS-9618. Fix mismatch between log level and guard in BlockManager#computeRecoveryWorkForBlocks (iwasakims)
This commit is contained in:
parent
844a8e3771
commit
73ef77c12f
@ -57,6 +57,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. Consolidate FSDirStatAndListingOp#createFileStatus to let its
|
||||
INodesInPath parameter always include the target INode. (jing9)
|
||||
|
||||
|
@ -1389,7 +1389,7 @@ int computeReplicationWorkForBlocks(List<List<BlockInfo>> blocksToReplicate) {
|
||||
namesystem.writeUnlock();
|
||||
}
|
||||
|
||||
if (blockLog.isInfoEnabled()) {
|
||||
if (blockLog.isDebugEnabled()) {
|
||||
// log which blocks have been scheduled for replication
|
||||
for(ReplicationWork rw : work){
|
||||
DatanodeStorageInfo[] targets = rw.getTargets();
|
||||
@ -1403,8 +1403,7 @@ int computeReplicationWorkForBlocks(List<List<BlockInfo>> blocksToReplicate) {
|
||||
rw.getBlock(), targetList);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (blockLog.isDebugEnabled()) {
|
||||
|
||||
blockLog.debug("BLOCK* neededReplications = {} pendingReplications = {}",
|
||||
neededReplications.size(), pendingReplications.size());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user