Skip to content

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vttranlina
Copy link
Contributor

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

Copy link
Contributor

@chibenwa chibenwa left a 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");
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants