You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ma...@apache.org on 2023/01/31 07:57:50 UTC

[iotdb] branch IOTDB-5395 created (now c6d79f8921)

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

marklau99 pushed a change to branch IOTDB-5395
in repository https://gitbox.apache.org/repos/asf/iotdb.git


      at c6d79f8921 update file metrics when loading tsfile

This branch includes the following new commits:

     new c6d79f8921 update file metrics when loading tsfile

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: update file metrics when loading tsfile

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

marklau99 pushed a commit to branch IOTDB-5395
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit c6d79f89210ae229b4b732c1a5e4e74b76a8109a
Author: Liu Xuxin <li...@outlook.com>
AuthorDate: Tue Jan 31 15:57:36 2023 +0800

    update file metrics when loading tsfile
---
 .../main/java/org/apache/iotdb/db/engine/storagegroup/DataRegion.java  | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/server/src/main/java/org/apache/iotdb/db/engine/storagegroup/DataRegion.java b/server/src/main/java/org/apache/iotdb/db/engine/storagegroup/DataRegion.java
index 18e66034ee..9225141008 100644
--- a/server/src/main/java/org/apache/iotdb/db/engine/storagegroup/DataRegion.java
+++ b/server/src/main/java/org/apache/iotdb/db/engine/storagegroup/DataRegion.java
@@ -2326,6 +2326,9 @@ public class DataRegion implements IDataRegionForQuery {
           newFilePartitionId,
           insertPos,
           deleteOriginFile);
+      TsFileMetricManager.getInstance()
+          .addFile(
+              newTsFileResource.getTsFile().length(), tsFileType == LoadTsFileType.LOAD_SEQUENCE);
 
       resetLastCacheWhenLoadingTsFile(); // update last cache
       updateLastFlushTime(newTsFileResource); // update last flush time