失败日志

  1. # 启动
  2. 1:S 25 Jan 2022 08:31:54.693 * MASTER <-> REPLICA sync started
  3. 1:S 25 Jan 2022 08:31:54.693 * Non blocking connect for SYNC fired the event.
  4. 1:S 25 Jan 2022 08:31:54.693 * Master replied to PING, replication can continue...
  5. 1:S 25 Jan 2022 08:31:54.693 * Partial resynchronization not possible (no cached master)
  6. 1:S 25 Jan 2022 08:31:54.694 * Full resync from master: b9c9d2d98e62a2b2d248aa070e73f4ecc622f7dc:0
  7. 1:S 25 Jan 2022 08:31:54.804 * MASTER <-> REPLICA sync: receiving 175 bytes from master to disk
  8. 1:S 25 Jan 2022 08:31:54.805 * MASTER <-> REPLICA sync: Flushing old data
  9. 1:S 25 Jan 2022 08:31:54.805 * MASTER <-> REPLICA sync: Loading DB in memory
  10. 1:S 25 Jan 2022 08:31:54.807 # Failed trying to load the MASTER synchronization DB from disk
  11. # 选举 6.0.8
  12. 1:S 25 Jan 2022 08:26:50.300 * MASTER <-> REPLICA sync started
  13. 1:S 25 Jan 2022 08:26:50.300 # Error condition on socket for SYNC: Operation now in progress
  14. # 选举 6.2.6
  15. 1:S 25 Jan 2022 08:54:51.141 # Error condition on socket for SYNC: Connection refused
  16. 1:S 25 Jan 2022 08:54:52.144 * Connecting to MASTER 127.0.0.1:6002

原因怀疑

  • 怀疑是window的在进程中不允许对文件操作的问题照成的

问题修复

临时处理的方法

  • 我把挂载的磁盘去掉用在挂载,就切换成功了