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.

Can't execute SENTINEL commands on /192.168.28.129:63376

See original GitHub issue

exception log

Can't execute SENTINEL commands on /192.168.28.129:63376

org.redisson.client.RedisTimeoutException: Command execution timeout for command: (SENTINEL SENTINELS), params: [mymaster], Redis client: [addr=redis://192.168.28.129:63376]
	at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:207)
	at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)
	at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)
	at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.lang.Thread.run(Thread.java:748)

There are three sentinels in total. This anomaly occurs every time you start it. A sentinel anomaly appears randomly, but it can be used normally.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
zhwq1216commented, May 17, 2021

@mrniko I tested 3.12.5, try to dump the thread stacks, then I found the issue was caused by this commit 65e4d2c7

2021-05-18 00:08:19.685 [redisson-timer-4-1][] ERROR org.redisson.connection.SentinelConnectionManager - Can’t execute SENTINEL commands on /10.10.3.232:27002 org.redisson.client.RedisTimeoutException: Command execution timeout for command: (SENTINEL SENTINELS), params: [mymaster], Redis client: [addr=redis://10.10.3.232:27002] Thread[redisson-netty-2-1,5,main] RUNNABLE java.net.Inet4AddressImpl.getHostByAddr(Native Method) java.net.InetAddress$2.getHostByAddr(InetAddress.java:911) java.net.InetAddress.getHostFromNameService(InetAddress.java:596) java.net.InetAddress.getHostName(InetAddress.java:538) java.net.InetAddress.getHostName(InetAddress.java:510) java.net.InetSocketAddress$InetSocketAddressHolder.getHostName(InetSocketAddress.java:82) java.net.InetSocketAddress$InetSocketAddressHolder.access$600(InetSocketAddress.java:56) java.net.InetSocketAddress.getHostName(InetSocketAddress.java:345) org.redisson.misc.RedisURI.compare(RedisURI.java:91) org.redisson.connection.balancer.LoadBalancerManager.getEntry(LoadBalancerManager.java:214) org.redisson.connection.balancer.LoadBalancerManager.contains(LoadBalancerManager.java:204) org.redisson.connection.MasterSlaveEntry.hasSlave(MasterSlaveEntry.java:264) org.redisson.connection.SentinelConnectionManager.addSlave(SentinelConnectionManager.java:559) org.redisson.connection.SentinelConnectionManager.lambda$updateState$3(SentinelConnectionManager.java:419) org.redisson.connection.SentinelConnectionManager$$Lambda$35/1453189045.accept(Unknown Source) org.redisson.misc.RedissonPromise.lambda$onComplete$0(RedissonPromise.java:187) org.redisson.misc.RedissonPromise$$Lambda$3/116289363.operationComplete(Unknown Source) io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:577) io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:570) io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:549) io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:490) io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:615) io.netty.util.concurrent.DefaultPromise.setSuccess0(DefaultPromise.java:604) io.netty.util.concurrent.DefaultPromise.trySuccess(DefaultPromise.java:104) org.redisson.misc.RedissonPromise.trySuccess(RedissonPromise.java:82) org.redisson.client.handler.CommandDecoder.completeResponse(CommandDecoder.java:444) org.redisson.client.handler.CommandDecoder.handleResult(CommandDecoder.java:439) org.redisson.client.handler.CommandDecoder.decodeResult(CommandDecoder.java:428) org.redisson.client.handler.CommandDecoder.decodeList(CommandDecoder.java:422) org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:377) org.redisson.client.handler.CommandDecoder.decodeCommand(CommandDecoder.java:196) org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:134) org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:104) io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:498) io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:366) io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:276) io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714) io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650) io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576) io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) java.lang.Thread.run(Thread.java:745)

1reaction
yun-yuncommented, Feb 22, 2021

same problem. like https://github.com/redisson/redisson/issues/3283 through the test,: this not happen in 3.12.4 this will happen in 3.12.5 or higher

My current version is 3.15.0, and I use this configuration so that it doesn’t report errors:

Config config = new Config();
config.useSentinelServers()
        .addSentinelAddress("redis://192.168.55.181:26375",
                "redis://192.168.55.182:26375",
                "redis://192.168.55.183:26375")
        .setDatabase(1)
        .setPassword("*****")
        .setTimeout(30000)
        .setMasterName("mymaster");
RedissonClient redisson = Redisson.create(config);

If I don’t set this amount of timeout, it will report an error.

14:36:42.380 [redisson-netty-2-31] DEBUG org.redisson.connection.SentinelConnectionManager - nat mapped uri: redis://192.168.55.181:6379 to redis://192.168.55.181:6379
14:36:42.384 [redisson-netty-2-31] DEBUG org.redisson.connection.SentinelConnectionManager - nat mapped uri: redis://192.168.55.14:6379 to redis://192.168.55.14:6379
14:36:42.384 [redisson-netty-2-31] DEBUG org.redisson.connection.SentinelConnectionManager - nat mapped uri: redis://192.168.55.181:6379 to redis://192.168.55.181:6379
14:36:51.412 [redisson-netty-2-31] DEBUG org.redisson.connection.SentinelConnectionManager - nat mapped uri: redis://192.168.55.15:6379 to redis://192.168.55.15:6379
14:36:51.412 [redisson-netty-2-31] DEBUG org.redisson.connection.SentinelConnectionManager - nat mapped uri: redis://192.168.55.181:6379 to redis://192.168.55.181:6379
14:37:02.482 [redisson-timer-4-1] ERROR org.redisson.connection.SentinelConnectionManager - Can't execute SENTINEL commands on /192.168.55.183:26375
org.redisson.client.RedisTimeoutException: Command execution timeout for command: (SENTINEL SENTINELS), params: [mymaster], Redis client: [addr=redis://192.168.55.183:26375]
	at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:207)
	at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)
	at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)
	at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.lang.Thread.run(Thread.java:748)
14:37:09.475 [redisson-netty-2-31] DEBUG org.redisson.connection.SentinelConnectionManager - nat mapped uri: redis://192.168.55.14:6379 to redis://192.168.55.14:6379
14:37:09.475 [redisson-netty-2-31] DEBUG org.redisson.connection.SentinelConnectionManager - nat mapped uri: redis://192.168.55.181:6379 to redis://192.168.55.181:6379
14:37:09.475 [redisson-netty-2-31] DEBUG org.redisson.connection.SentinelConnectionManager - nat mapped uri: redis://192.168.55.15:6379 to redis://192.168.55.15:6379
Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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