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.

RBatch bug when redis sentinel slave restart

See original GitHub issue

Expected behavior

use Rbatch to perform LRANGE requests

Actual behavior

I use redis sentinel mode. When using Rbatch to perform LRANGE requests. If the redis slave restart at this time, the redisson client will replay the LRANGE request until the program is restarted.

Steps to reproduce or test case

  1. use Rbatch to perform LRANGE requests(Keep request pressure)
  2. restart redis slave(sentinel mode)

Redis version

4.0.9

Redisson version

3.5.7

Redisson configuration

/redisson/order=codec=org.redisson.client.codec.StringCodec
/redisson/order=database=0
/redisson/order=masterAddress=192.168.0.x:6384
/redisson/order=masterName=pre_order
/redisson/order=password=xxx
/redisson/order=sentinelAddresses[0]=192.168.0.x:26379
/redisson/order=sentinelAddresses[1]=192.168.0.x:26379
/redisson/order=sentinelAddresses[2]=192.168.0.x:26379
/redisson/order=slaveAddress=192.168.0.xx:6384
/redisson=codec=org.redisson.client.codec.StringCodec
/redisson=database=0
/redisson=masterAddress=192.168.0.x:6316
/redisson=masterName=pre
/redisson=password=xxxx
/redisson=sentinelAddresses[0]=192.168.0.x:26379
/redisson=sentinelAddresses[1]=192.168.0.x:26379
/redisson=sentinelAddresses[2]=192.168.0.xx:26379
/redisson=slaveAddress=192.168.0.xx:6316

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
linmingchangcommented, Feb 18, 2019

On version 3.10.2, this issue has been fixed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Redis Sentinel did not work correctly when restart
Problem : Redis Sentinel did not work correctly when restart. Reproduce: a). Boot redis and redis sentinel on three controllers.
Read more >
Is it possible read happens before replication when Redis is in ...
I am wondering if it is possible when I write data it is written on Master and while reading it goes to slave...
Read more >
A Guide to Redis with Redisson - Baeldung
A quick and practical guide to using Redisson for accessing Redis from a Java ... Single node; Master with slave nodes; Sentinel nodes ......
Read more >
High availability with Redis Sentinel
If a master is not working as expected, Sentinel can start a failover process where a replica is promoted to master, the other...
Read more >
Redis not recovery properly after a reboot of one server - GitLab
23:21 UTC: redis3 Redis server comes up as master, redis4 as slave; Lots of Error 500s occur on gitlab.com due to READONLY You...
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