divijvaidya commented on PR #13928: URL: https://github.com/apache/kafka/pull/13928#issuecomment-1612559816
Hi @pgjbz Thank you for your first contribution to Kafka. This utility method is used by multiple places in the code where NoSuchFileException is recoverable such as when moving index files. They are recoverable because index could be re-created. Hence, we cannot change the utility method itself. I see from the Jira that you are specifically trying to address the movement of cleaner files. May I suggest changing the place in the code where we handle clean up to handle the scenario of NoSuchFileFound instead. You can start at this code: https://github.com/apache/kafka/blob/482299c4e2c97315feea3db5d6bf0e5c2c8b8cc7/core/src/main/scala/kafka/log/LocalLog.scala#L839 -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org