lokeshj1703 opened a new pull request, #18097: URL: https://github.com/apache/hudi/pull/18097
### Describe the issue this Pull Request addresses Currently HoodieLockMetrics.createTimerForMetrics assigns a newly created metric to lockDuration field. This happens every time the API is called and it leads to the field `lockDuration` referring to a wrong timer instance. ### Summary and Changelog Addressing review comment in https://github.com/apache/hudi/pull/17955#discussion_r2762084397 The PR fixes HoodieLockMetrics.createTimerForMetrics to not assign a newly created metric to lockDuration field. ### Impact NA ### Risk Level Low ### Documentation Update NA ### Contributor's checklist - [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute) - [ ] Enough context is provided in the sections above - [ ] Adequate tests were added if applicable -- 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]
