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 2023/12/05 09:00:47 UTC

(iotdb) branch fix_file_double_file_count created (now 571451dce49)

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

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


      at 571451dce49 Fix file counted twice in TsFileMetrics

This branch includes the following new commits:

     new 571451dce49 Fix file counted twice in TsFileMetrics

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 file counted twice in TsFileMetrics

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

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

commit 571451dce49dc9fcd2cca2d824849ab866d46e63
Author: HTHou <hh...@outlook.com>
AuthorDate: Tue Dec 5 17:00:31 2023 +0800

    Fix file counted twice in TsFileMetrics
---
 .../org/apache/iotdb/db/service/metrics/file/TsFileMetrics.java   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/metrics/file/TsFileMetrics.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/metrics/file/TsFileMetrics.java
index f7284c8e85b..2bf47d750ab 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/metrics/file/TsFileMetrics.java
+++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/metrics/file/TsFileMetrics.java
@@ -366,7 +366,7 @@ public class TsFileMetrics implements IMetricSet {
             (seq ? SEQUENCE : UNSEQUENCE),
             entry.getKey(),
             innerEntry.getKey(),
-            innerEntry.getValue().getLeft());
+            0);
       }
     }
     for (Map.Entry<String, Map<String, Pair<Long, Gauge>>> entry :
@@ -377,7 +377,7 @@ public class TsFileMetrics implements IMetricSet {
             (seq ? SEQUENCE : UNSEQUENCE),
             entry.getKey(),
             innerEntry.getKey(),
-            innerEntry.getValue().getLeft());
+            0);
       }
     }
     for (Map.Entry<Integer, Pair<Integer, Gauge>> entry :
@@ -386,7 +386,7 @@ public class TsFileMetrics implements IMetricSet {
           seq ? seqLevelTsFileCountMap : unseqLevelTsFileCountMap,
           seq ? SEQUENCE : UNSEQUENCE,
           entry.getKey(),
-          entry.getValue().getLeft());
+          0);
     }
     for (Map.Entry<Integer, Pair<Long, Gauge>> entry :
         (seq ? seqLevelTsFileSizeMap : unseqLevelTsFileSizeMap).entrySet()) {
@@ -394,7 +394,7 @@ public class TsFileMetrics implements IMetricSet {
           seq ? seqLevelTsFileSizeMap : unseqLevelTsFileSizeMap,
           seq ? SEQUENCE : UNSEQUENCE,
           entry.getKey(),
-          entry.getValue().getLeft());
+          0);
     }
   }