Copilot commented on code in PR #61942:
URL: https://github.com/apache/doris/pull/61942#discussion_r3014863179


##########
fe/fe-core/src/main/java/org/apache/doris/metric/MetricRepo.java:
##########
@@ -1006,15 +1006,16 @@ public Integer getValue() {
         GAUGE_AVG_TABLET_SIZE_BYTES = new 
GaugeMetricImpl<>("avg_tablet_size_bytes", MetricUnit.BYTES, "", 0L);
         DORIS_METRIC_REGISTER.addMetrics(GAUGE_AVG_TABLET_SIZE_BYTES);
 
-        // Partition near-limit warning counters
-        COUNTER_AUTO_PARTITION_NEAR_LIMIT = new 
LongCounterMetric("auto_partition_near_limit_count",
+        // Partition near-limit warning gauges (updated by TabletStatMgr 
periodic scan)

Review Comment:
   The comment says these gauges are updated by `TabletStatMgr` periodic scan, 
but they are also updated by `CloudTabletStatMgr` in cloud mode. Update the 
comment to reflect both update paths (or a more generic “updated by 
*TabletStatMgr/CloudTabletStatMgr* periodic scan”) so it stays accurate.
   ```suggestion
           // Partition near-limit warning gauges (updated by 
TabletStatMgr/CloudTabletStatMgr periodic scans)
   ```



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to