You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2022/08/08 23:45:24 UTC

[GitHub] [kafka] cmccabe opened a new pull request, #12496: KAFKA-14114: Add Metadata Error Related Metrics

cmccabe opened a new pull request, #12496:
URL: https://github.com/apache/kafka/pull/12496

   This PR adds in 3 metrics as described in KIP-859:
    kafka.server:type=broker-metadata-metrics,name=metadata-load-error-count
    kafka.server:type=broker-metadata-metrics,name=metadata-apply-error-count
    kafka.controller:type=KafkaController,name=MetadataErrorCount
   
   These metrics are incremented by fault handlers when the appropriate fault happens. Broker-side
   load errors happen in BrokerMetadataListener. Broker-side apply errors happen in the
   BrokerMetadataPublisher. The metric on the controller is incremented when the standby controller
   (not active) encounters a metadata error.
   
   In BrokerMetadataPublisher, try to limit the damage caused by an exception by introducing more
   catch blocks. The only fatal failures here are those that happen during initialization, when we
   initialize the manager objects (these would also be fatal in ZK mode).
   
   In BrokerMetadataListener, try to improve the logging of faults, especially ones that happen when
   replaying a snapshot. Try to limit the damage caused by an exception.
   
   Replace MetadataFaultHandler with LoggingFaultHandler, which is more flexible and takes a Runnable
   argument. Add LoggingFaultHandlerTest.
   
   Make QuorumControllerMetricsTest stricter. Fix a bug where we weren't cleaning up some metrics from
   the yammer registry on close in QuorumControllerMetrics.
   
   Co-author: Niket Goel <ng...@confluent.io>


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kafka] cmccabe closed pull request #12496: KAFKA-14114: Add Metadata Error Related Metrics

Posted by GitBox <gi...@apache.org>.
cmccabe closed pull request #12496: KAFKA-14114: Add Metadata Error Related Metrics
URL: https://github.com/apache/kafka/pull/12496


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org