You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by "Tinymemo (via GitHub)" <gi...@apache.org> on 2026/10/23 05:30:56 UTC

Re: [PR] Implement and fix Windows disk metrics parsing [iotdb]

Tinymemo commented on code in PR #17290:
URL: https://github.com/apache/iotdb/pull/17290#discussion_r4356444008


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/metrics/file/SystemRelatedFileMetrics.java:
##########
@@ -106,4 +120,10 @@ public void unbindFrom(AbstractMetricService metricService) {
           "open_file_handlers");
     }
   }
+
+  public interface Kernel32Ext extends Library {
+    Kernel32Ext INSTANCE = Native.load("kernel32", Kernel32Ext.class);
+
+    boolean GetProcessHandleCount(WinNT.HANDLE hProcess, IntByReference pdwHandleCount);

Review Comment:
   x



##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/metrics/file/SystemRelatedFileMetrics.java:
##########
@@ -106,4 +120,10 @@ public void unbindFrom(AbstractMetricService metricService) {
           "open_file_handlers");
     }
   }
+
+  public interface Kernel32Ext extends Library {
+    Kernel32Ext INSTANCE = Native.load("kernel32", Kernel32Ext.class);
+
+    boolean GetProcessHandleCount(WinNT.HANDLE hProcess, IntByReference pdwHandleCount);

Review Comment:
   x



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org