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 Find Node in Slaves in Version 3.16.5

See original GitHub issue

Expected behavior Have 1 master and 1 slave (with AWS ElastiCache). When testing failover by through modifying of the node type of the redis instance, expect after failover that there are no errors when querying the new master/slave.

Actual behavior Getting the following error message: Can't find replicaAddr/<host> in slaves! Available slaves: [[addr=master1Addr], [addr=master1Addr], [addr=master1Addr], [addr=replicaAddr]]

Trace:

  at java.lang.Thread.getStackTrace(Thread.java:1596)
   at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:84)
   at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:51)
   at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:270)
   at ch.qos.logback.classic.Logger.callAppenders(Logger.java:257)
   at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:421)
   at ch.qos.logback.classic.Logger.filterAndLog_2(Logger.java:414)
   at ch.qos.logback.classic.Logger.error(Logger.java:530)
   at org.redisson.connection.balancer.LoadBalancerManager.unfreeze(LoadBalancerManager.java:127)
   at org.redisson.connection.MasterSlaveEntry.slaveUp(MasterSlaveEntry.java:424)
   at org.redisson.connection.ReplicatedConnectionManager.slaveUp(ReplicatedConnectionManager.java:206)
   at org.redisson.connection.ReplicatedConnectionManager.lambda$checkNode$5(ReplicatedConnectionManager.java:195)
   at org.redisson.misc.RedissonPromise.lambda$onComplete$0(RedissonPromise.java:187)
   at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578)
   at io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:571)
   at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:550)
   at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:491)
   at io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:616)
   at io.netty.util.concurrent.DefaultPromise.setSuccess0(DefaultPromise.java:605)
   at io.netty.util.concurrent.DefaultPromise.trySuccess(DefaultPromise.java:104)
   at org.redisson.misc.RedissonPromise.trySuccess(RedissonPromise.java:82)
   at org.redisson.client.handler.CommandDecoder.completeResponse(CommandDecoder.java:460)
   at org.redisson.client.handler.CommandDecoder.handleResult(CommandDecoder.java:454)
   at org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:385)
   at org.redisson.client.handler.CommandDecoder.decodeCommand(CommandDecoder.java:198)
   at org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:137)
   at org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:113)
   at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:507)
   at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:366)
   at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:276)
   at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
   at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
   at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
   at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
   at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
   at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
   at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
   at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
   at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:719)
   at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)
   at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)
   at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)
   at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
   at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
   at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
   at java.lang.Thread.run(Thread.java:831)

Steps to reproduce or test case

  1. Deploy Service
  2. Modify node type of redis instance
  3. View application logs and see errors

Redis version 6.0.5

Redisson version 3.16.5

Redisson configuration

    redissonConfig
      .useReplicatedServers()
      .setTimeout(5000)
      .setNodeAddresses(addressList);

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:23 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
elakiancommented, Dec 8, 2021

@mrniko thanks! Is it possible to get it is out sooner? We are planning a full migration over to redisson but need fail overs to be handled before doing so. If not, no worries. Thanks again.

1reaction
elakiancommented, Dec 16, 2021

Seems to be fixed. Thanks @mrniko!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Notice: HPE StoreOnce Systems Running Software Version ...
Select the latest release of OS Independent: HPE StoreOnce system software, for example, Version: 3.16.5. Note: To ensure the latest version ...
Read more >
Path on various slaves node - hadoop - Stack Overflow
Please tell me how to solve this issue. And one more doubt, is it compulsary that all hadoop node (master & slave) should...
Read more >
WSCAN Software Manual | WEG
named as “node”. Every slave on a CANopen network is identified by its address, or Node-ID, which must be unique for each slave...
Read more >
Bug listing with status RESOLVED with resolution OBSOLETE ...
... Bug:101884 - "Get an ops message from the kernel with version 2.6.13.x" status:RESOLVED ... can't find /etc/catalyst2/catalyst2.conf" status:RESOLVED ...
Read more >
Release Notes - of /download - Opengear
- Fixed issue when using bulk node-update command to upgrade IM42xx devices. Release version 3.9.2 (July 16 2014) (IM4004, SD4002, KCS61xx) - Updated...
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