kerneltime commented on code in PR #7770:
URL: https://github.com/apache/ozone/pull/7770#discussion_r1941979706


##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/spi/impl/ReconContainerMetadataManagerImpl.java:
##########
@@ -108,16 +108,23 @@ public ReconContainerMetadataManagerImpl(ReconDBProvider 
reconDBProvider,
   public void reinitWithNewContainerDataFromOm(Map<ContainerKeyPrefix, Integer>
                                      containerKeyPrefixCounts)
       throws IOException {
-    // clear and re-init all container-related tables
+    LOG.info("Starting reinitialization of container data...");
+
+    Instant truncateStart = Instant.now();
+
+    // Clear and re-init all container-related tables
     truncateTable(this.containerKeyTable);
     truncateTable(this.keyContainerTable);
     truncateTable(this.containerKeyCountTable);
+
+    long truncateDuration = Duration.between(truncateStart, 
Instant.now()).toMillis();
+    LOG.info("Table truncation completed in {} ms", truncateDuration);

Review Comment:
   This should ideally be a metric.



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