This is an automated email from the ASF dual-hosted git repository.

jinsongzhou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/amoro.git


The following commit(s) were added to refs/heads/master by this push:
     new 39b4c2fa4 [Improvement] Increase the default database connection pool 
max wait time (#3427)
39b4c2fa4 is described below

commit 39b4c2fa4636c5bcd6c113f38138ac84abf48e6a
Author: Marvel-Gu <[email protected]>
AuthorDate: Wed Feb 5 02:46:06 2025 +0000

    [Improvement] Increase the default database connection pool max wait time 
(#3427)
    
    [Improvement]: Increase the default database connection pool max wait time 
(#3419)
---
 .../src/main/java/org/apache/amoro/server/AmoroManagementConf.java  | 2 +-
 charts/amoro/templates/amoro-configmap.yaml                         | 2 +-
 dist/src/main/amoro-bin/conf/config.yaml                            | 6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/amoro-ams/src/main/java/org/apache/amoro/server/AmoroManagementConf.java 
b/amoro-ams/src/main/java/org/apache/amoro/server/AmoroManagementConf.java
index dfbb0099d..04ac28d8e 100644
--- a/amoro-ams/src/main/java/org/apache/amoro/server/AmoroManagementConf.java
+++ b/amoro-ams/src/main/java/org/apache/amoro/server/AmoroManagementConf.java
@@ -339,7 +339,7 @@ public class AmoroManagementConf {
   public static final ConfigOption<Long> DB_CONNECT_MAX_WAIT_MILLIS =
       ConfigOptions.key("database.connection-pool-max-wait-millis")
           .longType()
-          .defaultValue(1000L)
+          .defaultValue(30000L)
           .withDescription("Max wait time before getting a connection 
timeout.");
 
   public static final ConfigOption<Long> OPTIMIZER_HB_TIMEOUT =
diff --git a/charts/amoro/templates/amoro-configmap.yaml 
b/charts/amoro/templates/amoro-configmap.yaml
index ec4cb9c83..b4fd29969 100644
--- a/charts/amoro/templates/amoro-configmap.yaml
+++ b/charts/amoro/templates/amoro-configmap.yaml
@@ -104,7 +104,7 @@ data:
         url: {{ .Values.amoroConf.database.url }}
         connection-pool-max-total: 20
         connection-pool-max-idle: 16
-        connection-pool-max-wait-millis: 1000
+        connection-pool-max-wait-millis: 30000
 
       terminal:
         backend: {{ .Values.amoroConf.terminal.backend }}
diff --git a/dist/src/main/amoro-bin/conf/config.yaml 
b/dist/src/main/amoro-bin/conf/config.yaml
index 6f3f4849d..f3e879601 100644
--- a/dist/src/main/amoro-bin/conf/config.yaml
+++ b/dist/src/main/amoro-bin/conf/config.yaml
@@ -105,7 +105,7 @@ ams:
     url: jdbc:derby:/tmp/amoro/derby;create=true
     connection-pool-max-total: 20
     connection-pool-max-idle: 16
-    connection-pool-max-wait-millis: 1000
+    connection-pool-max-wait-millis: 30000
 
 #  MySQL database configuration.
 #  database:
@@ -117,7 +117,7 @@ ams:
 #    auto-create-tables: true
 #    connection-pool-max-total: 20
 #    connection-pool-max-idle: 16
-#    connection-pool-max-wait-millis: 1000
+#    connection-pool-max-wait-millis: 30000
 
 #  Postgres database configuration.
 #  database:
@@ -129,7 +129,7 @@ ams:
 #    auto-create-tables: true
 #    connection-pool-max-total: 20
 #    connection-pool-max-idle: 16
-#    connection-pool-max-wait-millis: 1000
+#    connection-pool-max-wait-millis: 30000
 
   terminal:
     backend: local

Reply via email to