Skip to content

Commit

Permalink
test commit apache#2
Browse files Browse the repository at this point in the history
  • Loading branch information
JayajP committed Dec 14, 2023
1 parent 08f8840 commit d50be23
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ public class StreamingStepMetricsContainer implements MetricsContainer {
private MetricsMap<MetricName, DeltaCounterCell> counters =
new MetricsMap<>(DeltaCounterCell::new);

private MetricsMap<MetricName, DeltaCounterCell> perWorkerCounters =
new MetricsMap<>(DeltaCounterCell::new);
private ConcurrentHashMap<MetricName, Long> perWorkerCounters = new ConcurrentHashMap<>();

private MetricsMap<MetricName, GaugeCell> gauges = new MetricsMap<>(GaugeCell::new);

Expand Down Expand Up @@ -88,7 +87,7 @@ public Counter getCounter(MetricName metricName) {
@Override
public Counter getPerWorkerCounter(MetricName metricName) {
if (enablePerWorkerMetrics) {
return perWorkerCounters.get(metricName);
return new RemoveSafeDeltaCounterCell(metricName, perWorkerCounters);
} else {
return MetricsContainer.super.getPerWorkerCounter(metricName);
}
Expand Down

0 comments on commit d50be23

Please sign in to comment.