errose28 commented on PR #8609: URL: https://github.com/apache/ozone/pull/8609#issuecomment-3189363437
Moving metrics create to the same area as the try/catch like the diff shared above with the comment explaining why is an improvement over the latest commit because it minimizes the chances of a new throwing call being placed between the metrics create and cleanup. I don't think catching all exceptions is necessary since runtime exceptions should crash the datanode but I don't think it causes harm in this case either. -- 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]
