lucliu1108 commented on code in PR #21201:
URL: https://github.com/apache/kafka/pull/21201#discussion_r2687178314


##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/DefaultStateUpdater.java:
##########
@@ -1035,10 +1094,10 @@ private Stream<Task> streamOfNonPausedTasks() {
     private class StateUpdaterMetrics {
         private static final String STATE_LEVEL_GROUP = 
"stream-state-updater-metrics";
 
-        private static final String IDLE_RATIO_DESCRIPTION = RATIO_DESCRIPTION 
+ "being idle";
-        private static final String RESTORE_RATIO_DESCRIPTION = 
RATIO_DESCRIPTION + "restoring active tasks";
-        private static final String UPDATE_RATIO_DESCRIPTION = 
RATIO_DESCRIPTION + "updating standby tasks";
-        private static final String CHECKPOINT_RATIO_DESCRIPTION = 
RATIO_DESCRIPTION + "checkpointing tasks restored progress";
+        private static final String IDLE_RATIO_DESCRIPTION = 
WINDOWED_RATIO_DESCRIPTION_PREFIX +  THREAD_TIME_UNIT_DESCRIPTION + "being 
idle";

Review Comment:
   It's just syntax consideration. The `RATIO_DESCRIPTION`, like other PREFIX 
does not cover any actual unit (e.g. per xxx). But it's just my personal 
preference.



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