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);