From ba5d8e314a16a93e6b762f3ee4dba7d60e2a136c Mon Sep 17 00:00:00 2001 From: shenymin <525296694@qq.com> Date: Sun, 16 Apr 2023 10:54:52 +0800 Subject: [PATCH] [warehouse] bugfix inttIotDB collectCheck Bug (#881) Co-authored-by: shenyumin --- .../hertzbeat/warehouse/store/HistoryIotDbDataStorage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warehouse/src/main/java/org/dromara/hertzbeat/warehouse/store/HistoryIotDbDataStorage.java b/warehouse/src/main/java/org/dromara/hertzbeat/warehouse/store/HistoryIotDbDataStorage.java index 7ffe9bf093f..69b54b139f9 100644 --- a/warehouse/src/main/java/org/dromara/hertzbeat/warehouse/store/HistoryIotDbDataStorage.java +++ b/warehouse/src/main/java/org/dromara/hertzbeat/warehouse/store/HistoryIotDbDataStorage.java @@ -127,7 +127,7 @@ private boolean initIotDbSession(WarehouseProperties.StoreProperties.IotDbProper private boolean checkConnection() { try { - this.sessionPool.executeNonQueryStatement(SHOW_STORAGE_GROUP); + this.sessionPool.executeQueryStatement(SHOW_STORAGE_GROUP); return true; } catch (Exception e) { log.error(e.getMessage(), e);