From 7df9e25023bb630d290b4b48ef27e73a2084f27b Mon Sep 17 00:00:00 2001 From: Haoran Meng Date: Tue, 10 Dec 2024 14:55:30 +0800 Subject: [PATCH] Log the necessary cluster persist exception (#33987) --- .../cluster/zookeeper/handler/ZookeeperExceptionHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/mode/type/cluster/repository/provider/zookeeper/src/main/java/org/apache/shardingsphere/mode/repository/cluster/zookeeper/handler/ZookeeperExceptionHandler.java b/mode/type/cluster/repository/provider/zookeeper/src/main/java/org/apache/shardingsphere/mode/repository/cluster/zookeeper/handler/ZookeeperExceptionHandler.java index d04bc5aca1804..275d51feb1201 100644 --- a/mode/type/cluster/repository/provider/zookeeper/src/main/java/org/apache/shardingsphere/mode/repository/cluster/zookeeper/handler/ZookeeperExceptionHandler.java +++ b/mode/type/cluster/repository/provider/zookeeper/src/main/java/org/apache/shardingsphere/mode/repository/cluster/zookeeper/handler/ZookeeperExceptionHandler.java @@ -51,6 +51,7 @@ public static void handleException(final Exception cause) { log.info("InterruptedException caught"); Thread.currentThread().interrupt(); } else { + log.error("Zookeeper exception occured.", cause); throw new ClusterRepositoryPersistException(cause); } }