vipshop / redis-migrate-tool

A convenient and useful tool for migrating data between redis group.
Apache License 2.0
958 stars 319 forks source link

无盘复制情况下无法正常同步数据 #64

Open beebol opened 6 years ago

beebol commented 6 years ago

source的配置:repl-diskless-sync:yes migrate-tool的配置:rdb_diskless: true

进行进行报错如下:

[2018-10-23 17:21:31.539] rmt_redis.c:1706 Start connecting to MASTER[10.10.1.65:6001]. [2018-10-23 17:21:31.539] rmt_redis.c:1740 Master[10.10.1.65:6001] replied to PING, replication can continue... [2018-10-23 17:21:31.539] rmt_redis.c:1051 Partial resynchronization for MASTER[10.10.1.65:6001] not possible (no cached master).

[2018-10-23 17:21:37.983] rmt_redis.c:1512 MASTER <-> SLAVE sync: receiving streamed RDB from master[10.10.1.65:6001] [2018-10-23 17:21:37.983] rmt_redis.c:1548 Error: I/O error trying to sync with MASTER[10.100.10.65:6001]: connection lost [2018-10-23 17:21:38.548] rmt_redis.c:2037 srnode->ctx->target_type: 1, srnode->rdb->received: 0 [2018-10-23 17:21:38.548] rmt_redis.c:2044 Reconnect to node[10.10.1.65:6001] for replication [2018-10-23 17:21:38.548] rmt_redis.c:1706 Start connecting to MASTER[10.10.1.65:6001]. [2018-10-23 17:21:38.548] rmt_redis.c:1740 Master[10.10.1.65:6001] replied to PING, replication can continue... [2018-10-23 17:21:38.549] rmt_redis.c:1051 Partial resynchronization for MASTER[10.10.1.65:6001] not possible (no cached master).

oracle1521 commented 5 years ago

查看下该参数,设置为no repl-diskless-sync no

beebol commented 5 years ago

查看下该参数,设置为no repl-diskless-sync no

为no是可以正常同步,如果能支持无落盘同步更好些。