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

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


The following commit(s) were added to refs/heads/new_win_metric by this push:
     new 58aeecf77af Fix Windows disk metrics parsing
58aeecf77af is described below

commit 58aeecf77af84e5134193dd47626b6f47ba57a3e
Author: HTHou <[email protected]>
AuthorDate: Thu Mar 12 17:26:42 2026 +0800

    Fix Windows disk metrics parsing
---
 .../iotdb/db/service/metrics/file/SystemRelatedFileMetrics.java       | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/metrics/file/SystemRelatedFileMetrics.java
 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/metrics/file/SystemRelatedFileMetrics.java
index aa529fc4672..b9b9e89e82c 100644
--- 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/metrics/file/SystemRelatedFileMetrics.java
+++ 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/metrics/file/SystemRelatedFileMetrics.java
@@ -109,7 +109,9 @@ public class SystemRelatedFileMetrics implements IMetricSet 
{
 
   @Override
   public void unbindFrom(AbstractMetricService metricService) {
-    if ((CONFIG.getSystemType() == SystemType.LINUX || CONFIG.getSystemType() 
== SystemType.MAC)
+    if ((CONFIG.getSystemType() == SystemType.LINUX
+            || CONFIG.getSystemType() == SystemType.MAC
+            || CONFIG.getSystemType() == SystemType.WINDOWS)
         && !CONFIG.getPid().isEmpty()) {
       metricService.remove(
           MetricType.AUTO_GAUGE,

Reply via email to