showuon commented on code in PR #14832:
URL: https://github.com/apache/kafka/pull/14832#discussion_r1407418714
##########
core/src/main/scala/kafka/server/KafkaRequestHandler.scala:
##########
@@ -283,8 +283,39 @@ class BrokerTopicMetrics(name: Option[String], configOpt:
java.util.Optional[Kaf
meter()
}
+ case class GaugeWrapper(metricType: String, brokerTopicAggregatedMetric:
BrokerTopicAggregatedMetric) {
+ @volatile private var lazyGauge: Gauge[Long] = _
+ private val gaugeLock = new Object
+
+ def gauge(): Gauge[Long] = {
Review Comment:
When do we initialize the gauge for topic with tags?
--
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]