asafm commented on code in PR #16758:
URL: https://github.com/apache/pulsar/pull/16758#discussion_r945692734
##########
pulsar-transaction/coordinator/src/main/java/org/apache/pulsar/transaction/coordinator/impl/TxnLogBufferedWriterMetricsStats.java:
##########
@@ -118,84 +107,71 @@ public TxnLogBufferedWriterMetricsStats(String
metricsPrefix, String[] labelName
String recordsPerBatchMetricName =
String.format("%s_bufferedwriter_batch_record_count",
metricsPrefix);
- recordsPerBatchMetric = (Histogram) COLLECTOR_CACHE.computeIfAbsent(
- recordsPerBatchMetricName,
- k -> new Histogram.Builder()
+ this.recordsPerBatchMetric = new Histogram.Builder()
Review Comment:
No need for `this.`
--
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]