ivandika3 opened a new pull request, #10941: URL: https://github.com/apache/ozone/pull/10941
## What changes were proposed in this pull request? Add guardrails to detect Hadoop metrics leak similar to `ManagedRocksObjectMetrics.INSTANCE.assertNoLeaks`. One idea is enable all the metrics related configuration in all the integration tests (e.g. percentiles configuration) and after the MiniOzoneCluster are shut down, check the metric registry to ensure that there are no more metrics that are still registered. Add a WARN logs or fail the test. The main class is MetricsLeakAssertion, we have two leaky Metric sources - EXPECTED_LEFTOVER_SOURCES: These are expected sources or the ones from Hadoop project (not handled in Ozone), we leave it be. - TODO_LEFTOVER_SOURCES: These should be reviewed and fixed in the subsequent patches. (Generated-by: Kimi K3) ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-15960 ## How was this patch tested? CI. -- 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]
