HScarb commented on issue #4102: URL: https://github.com/apache/rocketmq/issues/4102#issuecomment-1098153247
IMO, the idea is good, but it not make sense. The iterate logic is to prevent concurrent bug for this method. In most cases, the method will find `targetFile` and return before this iterate logic. In concurrent cases, the mapped files may be deleted after getting targetFile, the index will becom inaccurate. -- 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]
