CodisLabs / CodisLabs/codis

codis在web界面上面手动切换 redis主从失败

Open
#1,586 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
13.2k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

在web界面上面,从redis 点击 promote 按钮 结果 主从切换失败
192.168.11.226 主 192.168.11.225 从
213667:S 18 Oct 23:38:21.430 # Connection with master lost.
213667:S 18 Oct 23:38:21.430 * Caching the disconnected master state.
213667:S 18 Oct 23:38:22.243 * Connecting to MASTER 192.168.11.226:6383
213667:S 18 Oct 23:38:22.243 * MASTER <-> SLAVE sync started
213667:S 18 Oct 23:38:22.243 * Non blocking connect for SYNC fired the event.
213667:S 18 Oct 23:38:22.243 * Master replied to PING, replication can continue...
213667:S 18 Oct 23:38:22.243 * Trying a partial resynchronization (request f24e97d456ac31ff0ef95e53ff980595064fcb01:60813082903).
213667:S 18 Oct 23:38:22.244 * Master does not support PSYNC or is in error state (reply: -ERR Can't SYNC while not connected with my master)
213667:S 18 Oct 23:38:22.244 * Discarding previously cached master state.
213667:S 18 Oct 23:38:22.244 * Retrying with SYNC...
213667:S 18 Oct 23:38:22.244 # MASTER aborted replication with an error: ERR Can't SYNC while not connected with my master
213667:S 18 Oct 23:38:23.244 * Connecting to MASTER 192.168.11.226:6383
213667:S 18 Oct 23:38:23.244 * MASTER <-> SLAVE sync started
213667:S 18 Oct 23:38:23.244 * Non blocking connect for SYNC fired the event.
213667:S 18 Oct 23:38:23.245 * Master replied to PING, replication can continue...
213667:S 18 Oct 23:38:23.245 * Partial resynchronization not possible (no cached master)
213667:S 18 Oct 23:38:23.245 * Master does not support PSYNC or is in error state (reply: -ERR Can't SYNC while not connected with my master)
213667:S 18 Oct 23:38:23.245 * Retrying with SYNC...
213667:S 18 Oct 23:38:23.245 # MASTER aborted replication with an error: ERR Can't SYNC while not connected with my master
213667:S 18 Oct 23:38:24.245 * Connecting to MASTER 192.168.11.226:6383
213667:S 18 Oct 23:38:24.245 * MASTER <-> SLAVE sync started
213667:S 18 Oct 23:38:24.245 * Non blocking connect for SYNC fired the event.
213667:S 18 Oct 23:38:24.246 * Master replied to PING, replication can continue...
213667:S 18 Oct 23:38:24.246 * Partial resynchronization not possible (no cached master)
213667:S 18 Oct 23:38:24.246 * Master does not support PSYNC or is in error state (reply: -ERR Can't SYNC while not connected with my master)
213667:S 18 Oct 23:38:24.246 * Retrying with SYNC...
213667:S 18 Oct 23:38:24.246 # MASTER aborted replication with an error: ERR Can't SYNC while not connected with my master
213667:S 18 Oct 23:38:25.247 * Connecting to MASTER 192.168.11.226:6383

请问下 什么原因?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.