Aggarwal-Raghav opened a new pull request, #6666: URL: https://github.com/apache/hive/pull/6666
### What changes were proposed in this pull request? Check [HIVE-29787](https://issues.apache.org/jira/browse/HIVE-29787), The goal is to have separate json for hs2 and hms and additionally setting the default frequency for HS2 metrics to 60 sec i.e. same as of HMS ### Why are the changes needed? When both HiveServer2 and Hive Metastore are running on the same host with the `JsonFileMetricsReporter` enabled, they experience a race condition resulting in telemetry/observability loss. Both processes default to writing their metric snapshots to the exact same file: `/tmp/report.json` ### Does this PR introduce _any_ user-facing change? **Yes** . The `JsonFileMetricsReporter` dumping file name default fallback location is changing from `/tmp/report.json` -> `/tmp/hs2-report.json` or `/tmp/hms-report.json` accordingly. ### How was this patch tested? On Cluster testing -- 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]
