Describe the bug

we have one master and one slave node . and each node also have the sentine service . Beside this we also have the single one Sentinel node. Now we have this case we set the keys to the master reached the maxmemory. and we make the manaul failover. The sentinel config rewirte success but the result is the slave become the master and the original master not become the slave.And in the sentinel.log it will print the below message every 10 seconds.

" +convert-to-slave slave 172.16.35.116:6379 172.16.35.116 6379 @ mymaster 172.16.35.112 6379

Add the sentinel config below : port 26380 dir "/var/lib/redis" daemonize yes requirepass olonsXtiTJmxOooBwM72jqmE7deEryWV logfile "/var/log/redis/sentinel.log" sentinel myid a61c5628fe9b10eb9908abb529d1fd4b5b779b86 sentinel deny-scripts-reconfig yes sentinel monitor mymaster 172.16.35.112 6379 2 sentinel client-reconfig-script mymaster /etc/redis/redis_failover.sh sentinel auth-pass mymaster olonsXtiTJmxOooBwM72jqmE7deEryWV sentinel auth-user mymaster unicloud_sentinel protected-mode yes bind 0.0.0.0 pidfile "/var/run/redis-sentinel.pid"

Generated by CONFIG REWRITE

user default on #5e5576f9f2f599d6a716c03ff1be2682766bcfbbb496d9dbb254dfa4d0430067 ~* +@all sentinel config-epoch mymaster 7 sentinel leader-epoch mymaster 6 sentinel known-replica mymaster 172.16.35.116 6379 sentinel known-sentinel mymaster 172.16.35.116 26380 39b20842c6f6d18aebb153246bb73d13c3fcd448 sentinel known-sentinel mymaster 172.16.35.125 26380 8f780c36e18ebd34ad87a331ab9a89ff7a95ba64 sentinel current-epoch 7

Comment From: hwware

hello @Cloud-Zhang , can you also share the original master(172.16.35.112) and slave(172.16.35.116) log? and if poossible, the more detailed sentinel log? thanks!

Comment From: arielcarrera

I have the same problem

Comment From: hwware

I have the same problem

Could you please provide us more detail? including how many master and replica nodes, their config file, and how to reproduce it? Thanks

Comment From: arielcarrera

I have the same problem

Could you please provide us more detail? including how many master and replica nodes, their config file, and how to reproduce it? Thanks

I found the problem, it was due to a bad configuration. I forgot to save some changes in my config file by mistake and my master node had "cluster-enabled yes". After comment this line it works as expected.

  • Redis version: 5.0.3 64 bit
  • OS: CentOS Stream 8
  • x86_64

Thank you