LiuGuH commented on PR #5892: URL: https://github.com/apache/hadoop/pull/5892#issuecomment-1709423486
The function BPServiceActor.blockReport invoke includes ibrManager.sendIBRs at first step. And ibrManager.sendIBRs are protected by synchronized. But in the lifetime of BPServiceActor.blockReport , when the block report generate and not start to send to namenode(before invode bpNamenode.blockReport function), the new sendIBRs maybe invoke first. So in order to keep the right order of ibr and fbr, we can use synchronized in ibrManager.sendIBRs and blockReport functions. -- 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]
