shenkonghui / issue

问题记录
0 stars 0 forks source link

redis cluster failover失败: Currently unable to failover: Waiting for votes, but majority still not reached. #200

Closed shenkonghui closed 4 months ago

shenkonghui commented 4 months ago
1:M 26 Apr 2024 17:10:59.281 # Manual failover requested by replica ad88ef3f01b8569a466e30d1a09db32d1fb50c05.
1:M 26 Apr 2024 17:10:59.283 # Failover auth granted to ad88ef3f01b8569a466e30d1a09db32d1fb50c05 for epoch 11
1:M 26 Apr 2024 17:10:59.286 # Connection with replica 10.244.3.99:6379 lost.
1:M 26 Apr 2024 17:10:59.290 # Configuration change detected. Reconfiguring myself as a replica of ad88ef3f01b8569a466e30d1a09db32d1fb50c05
1:S 26 Apr 2024 17:10:59.290 * Before turning into a replica, using my own master parameters to synthesize a cached master: I may be able to synchronize with the new master with just a partial transfer.
1:S 26 Apr 2024 17:10:59.290 * Connecting to MASTER 10.244.3.99:6379
1:S 26 Apr 2024 17:10:59.291 * MASTER <-> REPLICA sync started
1:S 26 Apr 2024 17:10:59.292 * Non blocking connect for SYNC fired the event.
1:S 26 Apr 2024 17:10:59.293 * Master replied to PING, replication can continue...
1:S 26 Apr 2024 17:10:59.294 * Trying a partial resynchronization (request 355cd3cc844bbfe023c69197655421c466cf1c4c:5727).
1:S 26 Apr 2024 17:10:59.295 * Successful partial resynchronization with master.
1:S 26 Apr 2024 17:10:59.295 # Master replication ID changed to 8e7db9a51d88efc41e7c2eae27249b37f1d34da8
1:S 26 Apr 2024 17:10:59.295 * MASTER <-> REPLICA sync: Master accepted a Partial Resynchronization.
1:S 26 Apr 2024 17:12:37.110 # Manual failover user request accepted.
1:S 26 Apr 2024 17:12:37.112 # Received replication offset for paused master manual failover: 5852
1:S 26 Apr 2024 17:12:37.113 # All master replication stream processed, manual failover can start.
1:S 26 Apr 2024 17:12:37.113 # Start of election delayed for 0 milliseconds (rank #0, offset 5852).
1:S 26 Apr 2024 17:12:37.113 # Starting a failover election for epoch 12.
1:S 26 Apr 2024 17:12:37.117 # Currently unable to failover: Waiting for votes, but majority still not reached.
1:S 26 Apr 2024 17:12:37.117 # Failover election won: I'm the new master.
1:S 26 Apr 2024 17:12:37.117 # configEpoch set to 12 after successful failover
1:M 26 Apr 2024 17:12:37.117 # Connection with master lost.
1:M 26 Apr 2024 17:12:37.117 * Caching the disconnected master state.
1:M 26 Apr 2024 17:12:37.117 * Discarding previously cached master state.
1:M 26 Apr 2024 17:12:37.118 # Setting secondary replication ID to 8e7db9a51d88efc41e7c2eae27249b37f1d34da8, valid up to offset: 5853. New replication ID is 4677b4d0389d34b9755bd929bc1529ce6ad345b7
1:M 26 Apr 2024 17:12:37.132 * Replica 10.244.3.99:6379 asks for synchronization
1:M 26 Apr 2024 17:12:37.133 * Partial resynchronization request from 10.244.3.99:6379 accepted. Sending 0 bytes of backlog starting from offset 5853.
shenkonghui commented 4 months ago

切换是成功了,别的组件又切换回去了。切换了2次