Skip to content

Commit

Permalink
fix test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dao-jun authored and Technoboy- committed Jun 1, 2023
1 parent 2e6567b commit 4d1fab7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
/**
*/
public class BrokerOperabilityMetrics {
private static final Counter TOPIC_LOAD_FAILED = Counter.build("topic_load_failed", "-").register();
private final List<Metrics> metricsList;
private final String localCluster;
private final DimensionStats topicLoadStats;
Expand All @@ -39,7 +40,6 @@ public class BrokerOperabilityMetrics {
private final LongAdder connectionCreateFailCount;
private final LongAdder connectionTotalClosedCount;
private final LongAdder connectionActive;
private static final Counter topicLoadFailed = Counter.build("topic_load_failed", "-").register();

public BrokerOperabilityMetrics(String localCluster, String brokerName) {
this.metricsList = new ArrayList<>();
Expand Down Expand Up @@ -87,7 +87,7 @@ Map<String, String> getDimensionMap(String metricsName) {

Metrics getTopicLoadMetrics() {
Metrics metrics = getDimensionMetrics("topic_load_times", "topic_load", topicLoadStats);
metrics.put("brk_topic_load_failed_count", topicLoadFailed.get());
metrics.put("brk_topic_load_failed_count", TOPIC_LOAD_FAILED.get());
return metrics;
}

Expand Down Expand Up @@ -117,7 +117,7 @@ public void recordTopicLoadTimeValue(long topicLoadLatencyMs) {
}

public void recordTopicLoadFailed() {
this.topicLoadFailed.inc();
this.TOPIC_LOAD_FAILED.inc();
}

public void recordConnectionCreate() {
Expand Down

0 comments on commit 4d1fab7

Please sign in to comment.