fredia commented on code in PR #20965:
URL: https://github.com/apache/flink/pull/20965#discussion_r1002873597


##########
flink-state-backends/flink-statebackend-common/src/main/java/org/apache/flink/state/common/ChangelogMaterializationMetricGroup.java:
##########
@@ -51,14 +57,17 @@ public ChangelogMaterializationMetricGroup(MetricGroup 
parentMetricGroup) {
                 counter(COMPLETED_MATERIALIZATION, new 
ThreadSafeSimpleCounter());
         this.failedMaterializationCounter =
                 counter(FAILED_MATERIALIZATION, new ThreadSafeSimpleCounter());
+
+        gauge(LAST_DURATION_OF_MATERIALIZATION, () -> lastDuration);
     }
 
     void reportStartedMaterialization() {
         startedMaterializationCounter.inc();
     }
 
-    void reportCompletedMaterialization() {
+    void reportCompletedMaterialization(long duration) {

Review Comment:
   I see, thanks for your clarification. 👍



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