From 8dbf79636fe3a684ca75ef3348e802c4bfeba153 Mon Sep 17 00:00:00 2001 From: dailai Date: Tue, 29 Oct 2024 16:15:42 +0800 Subject: [PATCH] [Improve][Zeta] Make the default value of classloader-cache-mode is true --- config/seatunnel.yaml | 1 + .../engine/common/config/server/ServerConfigOptions.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/seatunnel.yaml b/config/seatunnel.yaml index 4e7ef0c7001..f773204eba2 100644 --- a/config/seatunnel.yaml +++ b/config/seatunnel.yaml @@ -17,6 +17,7 @@ seatunnel: engine: + classloader-cache-mode: true history-job-expire-minutes: 1440 backup-count: 1 queue-type: blockingqueue diff --git a/seatunnel-engine/seatunnel-engine-common/src/main/java/org/apache/seatunnel/engine/common/config/server/ServerConfigOptions.java b/seatunnel-engine/seatunnel-engine-common/src/main/java/org/apache/seatunnel/engine/common/config/server/ServerConfigOptions.java index 37ec8674a1c..d9e9662a990 100644 --- a/seatunnel-engine/seatunnel-engine-common/src/main/java/org/apache/seatunnel/engine/common/config/server/ServerConfigOptions.java +++ b/seatunnel-engine/seatunnel-engine-common/src/main/java/org/apache/seatunnel/engine/common/config/server/ServerConfigOptions.java @@ -207,7 +207,7 @@ public class ServerConfigOptions { public static final Option CLASSLOADER_CACHE_MODE = Options.key("classloader-cache-mode") .booleanType() - .defaultValue(false) + .defaultValue(true) .withDescription( "Whether to use classloader cache mode. With cache mode, all jobs share the same classloader if the jars are the same");