dant3 commented on code in PR #7701:
URL: https://github.com/apache/ignite-3/pull/7701#discussion_r2918486442


##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/TableManager.java:
##########
@@ -1569,18 +1495,57 @@ private CompletableFuture<Void> 
stopTablePartition(TablePartitionId tablePartiti
         // In case of colocation there shouldn't be any table replica and thus 
it shouldn't be stopped.
         minTimeCollectorService.removePartition(tablePartitionId);
 
+        unregisterPartitionMetrics(tablePartitionId, table.name());
+
+        return mvGc.removeStorage(tablePartitionId);
+    }
+
+    private void registerPartitionTableStatsMetrics(
+            TableViewInternal table,
+            int partitionId,
+            PartitionResources partitionResources
+    ) {
+        PartitionTableStatsMetricSource metricSource =
+                new PartitionTableStatsMetricSource(table.tableId(), 
partitionId, partitionResources.modificationCounter);
+
+        try {
+            metricManager.registerSource(metricSource);
+            metricManager.enable(metricSource);

Review Comment:
   @sk0x50 this comment is addressed



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