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 08:28:46 UTC

[iotdb] branch IOTDB-5395-1.0 created (now 997c7ad8cf)

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

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


      at 997c7ad8cf update file metrics when loading tsfile

This branch includes the following new commits:

     new 997c7ad8cf 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-1.0
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 997c7ad8cf47988abb9e666158d95753c6b95351
Author: Liu Xuxin <li...@outlook.com>
AuthorDate: Tue Jan 31 16:28:35 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 f155dd0fe2..7216938e7a 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
@@ -2328,6 +2328,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