Skip to content

Commit 4ef82c4

Browse files
onobcsnicoll
authored andcommitted
Fix defaults for Cassandra's initQueryTimeout and idleTimeout
See gh-25150
1 parent f334b27 commit 4ef82c4

File tree

1 file changed

+2
-2
lines changed
  • spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cassandra

1 file changed

+2
-2
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cassandra/CassandraProperties.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public static class Connection {
270270
* Timeout to use for internal queries that run as part of the initialization
271271
* process, just after a connection is opened.
272272
*/
273-
private Duration initQueryTimeout = Duration.ofMillis(500);
273+
private Duration initQueryTimeout = Duration.ofSeconds(5);
274274

275275
public Duration getConnectTimeout() {
276276
return this.connectTimeout;
@@ -360,7 +360,7 @@ public static class Pool {
360360
/**
361361
* Idle timeout before an idle connection is removed.
362362
*/
363-
private Duration idleTimeout = Duration.ofSeconds(120);
363+
private Duration idleTimeout = Duration.ofSeconds(5);
364364

365365
/**
366366
* Heartbeat interval after which a message is sent on an idle connection to make

0 commit comments

Comments
 (0)