Fix defaults for Cassandra's initQueryTimeout and idleTimeout

See gh-25150
pull/25507/head
bono007 4 years ago committed by Stephane Nicoll
parent f334b27d60
commit 4ef82c45ac

@ -270,7 +270,7 @@ public class CassandraProperties {
* Timeout to use for internal queries that run as part of the initialization * Timeout to use for internal queries that run as part of the initialization
* process, just after a connection is opened. * process, just after a connection is opened.
*/ */
private Duration initQueryTimeout = Duration.ofMillis(500); private Duration initQueryTimeout = Duration.ofSeconds(5);
public Duration getConnectTimeout() { public Duration getConnectTimeout() {
return this.connectTimeout; return this.connectTimeout;
@ -360,7 +360,7 @@ public class CassandraProperties {
/** /**
* Idle timeout before an idle connection is removed. * 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 * Heartbeat interval after which a message is sent on an idle connection to make

Loading…
Cancel
Save