-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
smallrye.mutiny.TimeoutException when trying to connect to redis in Sentinel mode #24694
Comments
Hi, |
Hello |
The timeout indicate that it was not able to store the data within a 10s delay (I think that's the defailt(. |
I unfortunately don't have the hand to the redis cluster. |
any idea ? |
I believe this is fixed in #26268 |
Hello, This is not fixed. Here is my application.properties:
whats does mean the arg "db-number" ? |
Here is my code: RedisRessource:
RedisService:
MyRedisObject:
-> doesn't work and i don't know what i'm doing wrong regarding to the documation... the output:
|
How do you run your Redis in sentinel mode? |
@srigano I believe that With only that tidbit of info to go on, can you try changing the
Or maybe it's just worth trying to omit the
@cescoffier (and also @srigano): Quarkus' official "Sentinel Mode" documentation indicates that your configuration must define multiple host URLs, in addition to setting the client type:
With that in mind, it would make sense that @srigano 's original attempt at connecting in Sentinel mode failed, because it looks like he was only defining a single host URL. |
I have no idea why the timeout should occur here, but I'd like to point out that until vert-x3/vertx-redis-client#429 is merged and gets into Quarkus, sentinel users should always configure both |
Describe the bug
I'm using quarkus 2.7.5.Final.
With redis client, In standalone mode, it works fine:
but in sentinel mode it doesn't work:
i think this issue could come from the value of quarkus.redis.hosts variable.
I actually put this value :
quarkus.redis.hosts=redis://[IP]:8001
At this point, quarkus doesn't know my database Name.
in the help page, i can read this =
but i think there is a mistake here:
if i put my databasename like this:
quarkus.redis.hosts=redis://[IP]:8001/MYDBNAME
i got a FormatNumberException.
this error seems to be normal, because in the vertx Redis Client documentation (https://vertx.io/docs/vertx-redis-client/java/#_connecting_to_redis) we can see this:
So the key is :be should not put a database name, but a database number which is expected by the redis client...
Anyway even with a database number it doesn't work for me, I'm getting a timeout exception and I don't know why....
Thank you for you help
I put my code, juste below.
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
here is my code:
#Redis
quarkus.redis.hosts=redis://[IP_ADRESS]:8001
quarkus.redis.client-type=sentinel
quarkus.redis.password=mypass
Output of
uname -a
orver
linux
Output of
java -version
jdk 11
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.7.5.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)mvn 3.8.2
Additional information
No response
The text was updated successfully, but these errors were encountered: