From 4ef82c45ac28ca45467402daf23747ea63afa032 Mon Sep 17 00:00:00 2001 From: bono007 Date: Tue, 9 Feb 2021 11:36:55 -0600 Subject: [PATCH] Fix defaults for Cassandra's initQueryTimeout and idleTimeout See gh-25150 --- .../boot/autoconfigure/cassandra/CassandraProperties.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cassandra/CassandraProperties.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cassandra/CassandraProperties.java index df6a9837465..4823245f34d 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cassandra/CassandraProperties.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cassandra/CassandraProperties.java @@ -270,7 +270,7 @@ public class CassandraProperties { * Timeout to use for internal queries that run as part of the initialization * process, just after a connection is opened. */ - private Duration initQueryTimeout = Duration.ofMillis(500); + private Duration initQueryTimeout = Duration.ofSeconds(5); public Duration getConnectTimeout() { return this.connectTimeout; @@ -360,7 +360,7 @@ public class CassandraProperties { /** * Idle timeout before an idle connection is removed. */ - private Duration idleTimeout = Duration.ofSeconds(120); + private Duration idleTimeout = Duration.ofSeconds(5); /** * Heartbeat interval after which a message is sent on an idle connection to make