question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Command execution timeout for command: (SENTINEL SENTINELS)

See original GitHub issue

Expected behavior

Actual behavior

2020-12-10 21:24:49.614 ERROR 12300 --- [isson-timer-4-1] o.r.c.SentinelConnectionManager          : Can't execute SENTINEL commands on /192.168.1.101:26379

org.redisson.client.RedisTimeoutException: Command execution timeout for command: (SENTINEL SENTINELS), params: [mymaster], Redis client: [addr=redis://192.168.1.101:26379]
	at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:207) ~[redisson-3.14.0.jar:3.14.0]
	at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:680) ~[netty-all-4.1.42.Final.jar:4.1.42.Final]
	at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:755) ~[netty-all-4.1.42.Final.jar:4.1.42.Final]
	at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:483) ~[netty-all-4.1.42.Final.jar:4.1.42.Final]
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-all-4.1.42.Final.jar:4.1.42.Final]
	at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_151]

Steps to reproduce or test case 项目启动之后报错 Spring boot version 2.2.0.RELEASE

Redis version 5.0.5

Redisson version 3.13.6跟3.14.0

Redisson configuration

sentinelServersConfig:
  idleConnectionTimeout: 10000
  connectTimeout: 10000
  timeout: 5000
  retryAttempts: 3
  retryInterval: 3000
  subscriptionsPerConnection: 1
  clientName: null
  loadBalancer: !<org.redisson.connection.balancer.RoundRobinLoadBalancer> {}
  slaveConnectionMinimumIdleSize: 5
  slaveConnectionPoolSize: 10
  masterConnectionMinimumIdleSize: 5
  masterConnectionPoolSize: 10
  readMode: "SLAVE"
  sentinelAddresses:
    - "redis://192.168.1.100:26379"
    - "redis://192.168.1.101:26379"
    - "redis://192.168.1.102:26379"
  masterName: "mymaster"
  password: "xxx"
  database: 0
threads: 0
nettyThreads: 0
codec: !<org.redisson.codec.JsonJacksonCodec> {}
transportMode: "NIO"

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
zdtdtelcommented, Jan 13, 2021

各种设置都不能完全搞定, 降低版本亲测有效 Lower the version, use 3.11.6, 3.12.4 降低 redisson-spring-boot-starter 版本, 使用 3.11.6, 3.12.4

0reactions
mrnikocommented, May 18, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Command execution timeout for command: (AUTH), params ...
Today, I have added connection pool and time out configuration. Now the spring boot application is connecting to redis 5 out of 10...
Read more >
org.redisson.client.redistimeoutexception command execution ...
org.redisson.client.redistimeoutexception command execution timeout for command (sentinel sentinels)技术、学习、经验文章掘金开发者社区搜索结果。
Read more >
Sentinel Client Reference — aioredis 1.0.0 documentation
Execute Sentinel command. coroutine discover (timeout=0.2)¶. Discover Sentinels and all monitored services within given timeout.
Read more >
Lettuce Reference Guide
The timeout defaults to 60 seconds and may be changed in the RedisClient or for each connection. Synchronous methods will throw a ...
Read more >
Redis Sentinel Documentation
This delay is the failover-timeout you can configure in sentinel.conf . This means that Sentinels will not try to failover the same master...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found