Describe the bug
When IPv4 and IPv6 coexist, active/standby switching in sentinel mode fails.
subscribe message from " +switch-master"
got message loop as below
To reproduce here is my configure for redis redis1.conf
daemonize yes
protected-mode no
port 6390
requirepass "foobared"
masterauth "foobared"
pidfile "/tmp/redis12.pid"
logfile "/tmp/redis12.log"
save ""
appendonly no
redis2.conf
daemonize yes
protected-mode no
port 6391
requirepass "foobared"
masterauth "foobared"
pidfile "/tmp/redis13.pid"
logfile "/tmp/redis13.log"
save ""
appendonly no
slaveof localhost 6390
sentinel.conf
port 26384
daemonize yes
protected-mode no
sentinel monitor mymasterfailover2 127.0.0.1 6390 1
sentinel auth-pass mymasterfailover2 foobared
sentinel down-after-milliseconds mymasterfailover2 2000
sentinel failover-timeout mymasterfailover2 120000
pidfile "/tmp/sentinel6.pid"
logfile "/tmp/sentinel6.log"
execute command on sentinel:
sentinel failover mymasterfailover2
Steps to reproduce the behavior and/or a minimal code sample.
Expected behavior
A description of what you expected to happen.
switch master to slave
Additional information
Any additional information that is relevant to the problem.
redis version 6.2