From 367dd29e0f025629108dea25560d6ccda1a6bdba Mon Sep 17 00:00:00 2001 From: tomsun28 Date: Mon, 25 Mar 2024 16:29:47 +0800 Subject: [PATCH] bugfix can not find mysql dependency when startup Signed-off-by: tomsun28 --- .../collector/collect/database/JdbcCommonCollect.java | 5 ----- e2e/compose.yaml | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/collector/src/main/java/org/dromara/hertzbeat/collector/collect/database/JdbcCommonCollect.java b/collector/src/main/java/org/dromara/hertzbeat/collector/collect/database/JdbcCommonCollect.java index a178feb2905..afe32602383 100644 --- a/collector/src/main/java/org/dromara/hertzbeat/collector/collect/database/JdbcCommonCollect.java +++ b/collector/src/main/java/org/dromara/hertzbeat/collector/collect/database/JdbcCommonCollect.java @@ -17,7 +17,6 @@ package org.dromara.hertzbeat.collector.collect.database; -import com.mysql.cj.jdbc.exceptions.CommunicationsException; import org.dromara.hertzbeat.collector.collect.AbstractCollect; import org.dromara.hertzbeat.collector.collect.common.cache.CacheIdentifier; import org.dromara.hertzbeat.collector.collect.common.cache.ConnectionCommonCache; @@ -100,10 +99,6 @@ public void collect(CollectRep.MetricsData.Builder builder, long monitorId, Stri builder.setMsg("Not support database query type: " + jdbcProtocol.getQueryType()); break; } - } catch (CommunicationsException communicationsException) { - log.warn("Jdbc sql error: {}, code: {}.", communicationsException.getMessage(), communicationsException.getErrorCode()); - builder.setCode(CollectRep.Code.UN_REACHABLE); - builder.setMsg("Error: " + communicationsException.getMessage() + " Code: " + communicationsException.getErrorCode()); } catch (PSQLException psqlException) { // for PostgreSQL 08001 if (CollectorConstants.POSTGRESQL_UN_REACHABLE_CODE.equals(psqlException.getSQLState())) { diff --git a/e2e/compose.yaml b/e2e/compose.yaml index 0e43f555e18..227a5636436 100644 --- a/e2e/compose.yaml +++ b/e2e/compose.yaml @@ -1,4 +1,4 @@ -version: '3.1' +version: '3.8' services: testing: build: