ZanderXu opened a new pull request, #4559:
URL: https://github.com/apache/hadoop/pull/4559
### Description of PR
During locating some abnormal cases about block replication in our prod
environment, I found that BlockManager does not out put some logs in
`addStoredBlock` even though `logEveryBlock` is true.
I feel that we need to change the log level from DEBUG to INFO when
`logEveryBlock` is true. So that we can more easily locate some abnormal cases.
```
private Block addStoredBlock(final BlockInfo block,
final Block reportedBlock,
DatanodeStorageInfo storageInfo,
DatanodeDescriptor delNodeHint,
boolean logEveryBlock)
throws IOException {
....
if (logEveryBlock) {
blockLog.debug("BLOCK* addStoredBlock: {} is added to {} (size={})",
node, storedBlock, storedBlock.getNumBytes());
}
...
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]