RocMarshal commented on code in PR #26744:
URL: https://github.com/apache/flink/pull/26744#discussion_r2184189726


##########
flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/DefaultCheckpointStatsTracker.java:
##########
@@ -543,6 +551,18 @@ public Long getValue() {
         }
     }
 
+    private class LatestCompletedCheckpointMetadataSizeGauge implements 
Gauge<Long> {
+        @Override
+        public Long getValue() {
+            CompletedCheckpointStats completed = latestCompletedCheckpoint;
+            if (completed != null) {
+                return completed.getMetadataSize();
+            } else {
+                return -1L;
+            }

Review Comment:
   ```suggestion
               return completed != null ? completed.getStateSize() : -1L;
   ```



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