-
Notifications
You must be signed in to change notification settings - Fork 480
JAMES-4072 Enable timeout option in RedisClientFactory #2706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do not need to remove (or update) reactor timeout?
@@ -109,7 +109,7 @@ private String createRedisSentinelURI() { | |||
sb.append("redis-sentinel://123@"); | |||
sb.append(this.stream().map(container -> container.getHost() + ":" + container.getMappedPort(SENTINEL_PORT)) | |||
.collect(Collectors.joining(","))); | |||
sb.append("?sentinelMasterId=mymaster"); | |||
sb.append("?sentinelMasterId=mymaster&timeout=3s"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This requires the extra configuration change (not everyone is aware of it and applies it everywhere)
I would be defensive in keeping the Reactor timeout as the safeguard.
WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm no problem with both way
feel free to revert it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change or not change? Status on this?
Currently, in the
RedisHealthcheck
, we are using Reactor's timeout handling, not the timeout provided by Redis Lettuce.With this configuration, the timeout will be correctly handled by the Lettuce library
Reference: redis/lettuce#2614