You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have seen an issue whether thread has got stuck waiting for getConnection future to complete. Looks like it is waiting for method connectClusterAsync to complete but is not timing out.
if (Objects.isNull(value)) {
log.info("Creating new cluster connection for key '{}'", key);
value = this.getClusterClient().connect();
}
Expected behavior/code
Would expect either connection to succeed or otherwise timeout if there is an issue. Looks like it remains stuck waiting for the future to complete.
We are not setting any timeoutOptions so assume this will pick up the default ones set or do we need to explicitly set a timeout option (e.g..timeoutOptions(TimeoutOptions.enabled())
Environment
Lettuce version(s): 6.2.3.RELEASE
Redis version: 7.0.8
Possible Solution
Additional context
The text was updated successfully, but these errors were encountered:
Bug Report
We have seen an issue whether thread has got stuck waiting for getConnection future to complete. Looks like it is waiting for method connectClusterAsync to complete but is not timing out.
https://github.com/lettuce-io/lettuce-core/blob/2ad862f5a1db860d57236c21c473cfd9aefebfea/src/main/java/io/lettuce/core/cluster/RedisClusterClient.java#L399
Current Behavior
Stack trace
Input Code
Setting up the lettuce cluster client.
Attempting to create cluster connection.
Expected behavior/code
Would expect either connection to succeed or otherwise timeout if there is an issue. Looks like it remains stuck waiting for the future to complete.
We are not setting any timeoutOptions so assume this will pick up the default ones set or do we need to explicitly set a timeout option (e.g..timeoutOptions(TimeoutOptions.enabled())
Environment
Possible Solution
Additional context
The text was updated successfully, but these errors were encountered: