JayajP commented on code in PR #30089:
URL: https://github.com/apache/beam/pull/30089#discussion_r1465355865


##########
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/StreamingStepMetricsContainer.java:
##########
@@ -68,6 +74,14 @@ public class StreamingStepMetricsContainer implements 
MetricsContainer {
   private MetricsMap<KV<MetricName, HistogramData.BucketType>, HistogramCell> 
perWorkerHistograms =
       new MetricsMap<>(HistogramCell::new);
 
+  private Map<MetricName, Instant> perWorkerCountersByFirstStaleTime = new 
ConcurrentHashMap<>();

Review Comment:
   made it `final` but I am instantiating the variable in the constructor so I 
can inject the value for testing.



-- 
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]

Reply via email to