ZanderXu opened a new pull request, #5501:
URL: https://github.com/apache/hadoop/pull/5501
The blockReport RPC should not update the lastBlockReportTime if this
blockReport is ignored. the related code as bellows:
```
public DatanodeCommand blockReport(final DatanodeRegistration nodeReg,
String poolId, final StorageBlockReport[] reports,
final BlockReportContext context) throws IOException {
// code placeholder
...
try {
// this blockReport may be ignored if bm.checkBlockReportLease return
false
if (bm.checkBlockReportLease(context, nodeReg)) {
// code placeholder
...
}
}
// If this blockReport is ignored, the removeBRLeaseIfNeeded should not
update the lastBlockReportTime
bm.removeBRLeaseIfNeeded(nodeReg, context);
// code placeholder
...
return null;
}
```
--
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]