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 b21e5bd5350..8181f499aff 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 @@ -212,7 +212,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; @@ -302,7 +302,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