You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2024/12/24 03:25:57 UTC

(iotdb) branch fix_load_dataregion_snapshot_missing_metric created (now b66fdb67bf7)

This is an automated email from the ASF dual-hosted git repository.

haonan pushed a change to branch fix_load_dataregion_snapshot_missing_metric
in repository https://gitbox.apache.org/repos/asf/iotdb.git


      at b66fdb67bf7 Fix load data region snapshot miss some writing metrics

This branch includes the following new commits:

     new b66fdb67bf7 Fix load data region snapshot miss some writing metrics

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(iotdb) 01/01: Fix load data region snapshot miss some writing metrics

Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch fix_load_dataregion_snapshot_missing_metric
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit b66fdb67bf745d764af390207a17caa7035ac317
Author: HTHou <ha...@apache.org>
AuthorDate: Tue Dec 24 11:22:26 2024 +0800

    Fix load data region snapshot miss some writing metrics
---
 .../src/main/java/org/apache/iotdb/db/storageengine/StorageEngine.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/StorageEngine.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/StorageEngine.java
index 21bdf6578d6..6b2b43cf7fd 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/StorageEngine.java
+++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/StorageEngine.java
@@ -861,6 +861,9 @@ public class StorageEngine implements IService {
       oldRegion.abortCompaction();
       oldRegion.syncCloseAllWorkingTsFileProcessors();
     }
+    WRITING_METRICS.createFlushingMemTableStatusMetrics(regionId);
+    WRITING_METRICS.createDataRegionMemoryCostMetrics(newRegion);
+    WRITING_METRICS.createActiveMemtableCounterMetrics(regionId);
     dataRegionMap.put(regionId, newRegion);
   }