bbejeck opened a new pull request, #21091: URL: https://github.com/apache/kafka/pull/21091
This PR changes the approach for handling the case when there are no open iterators for the `oldest-iterator-open-since-ms` metric. Previously, we would register the metric when the store opens its first iterator, then deregister the metric when it closes the last remaining open iterator. Under heavy load this process can cause performance degradation as detailed in the Jira ticket https://issues.apache.org/jira/browse/KAFKA-19678. This PR updates the handling of the metric to register and deregister on store opening and closing respectively, and handle the case of current open iterators by returning a `0` to indicate this state. -- 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]
