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

ERROR: redis rdb file node192.168.1.181:7380@17380-1629277454650087-31118.rdb read value error #89

Open 15250980346 opened 3 years ago

15250980346 commented 3 years ago

when i migrate redis cluster (redis version:5.0.3)use redis-migrate-tool ,i meet the errors as follows,plz help me?

[2021-08-18 17:04:14.624] rmt_core.c:2551 migrate job is running... [2021-08-18 17:04:14.633] rmt_redis.c:1706 Start connecting to MASTER[192.168.1.181:7380@17380]. [2021-08-18 17:04:14.634] rmt_redis.c:1740 Master[192.168.1.181:7380@17380] replied to PING, replication can continue... [2021-08-18 17:04:14.634] rmt_redis.c:1051 Partial resynchronization for MASTER[192.168.1.181:7380@17380] not possible (no cached master). [2021-08-18 17:04:14.638] rmt_redis.c:1706 Start connecting to MASTER[192.168.1.156:7380@17380]. [2021-08-18 17:04:14.638] rmt_redis.c:1740 Master[192.168.1.156:7380@17380] replied to PING, replication can continue... [2021-08-18 17:04:14.639] rmt_redis.c:1051 Partial resynchronization for MASTER[192.168.1.156:7380@17380] not possible (no cached master).

[2021-08-18 17:04:15.718] rmt_redis.c:1517 MASTER <-> SLAVE sync: receiving 47014647 bytes from master[192.168.1.181:7380@17380] [2021-08-18 17:04:15.808] rmt_redis.c:1517 MASTER <-> SLAVE sync: receiving 30952472 bytes from master[192.168.1.156:7380@17380] [2021-08-18 17:04:15.954] rmt_redis.c:1623 MASTER <-> SLAVE sync: RDB data for node[192.168.1.181:7380@17380] is received, used: 1 s [2021-08-18 17:04:15.954] rmt_redis.c:1643 rdb file node192.168.1.181:7380@17380-1629277454650087-31118.rdb write complete [2021-08-18 17:04:16.006] rmt_redis.c:6170 ERROR: Unknown object type [2021-08-18 17:04:16.006] rmt_redis.c:6542 ERROR: redis rdb file node192.168.1.181:7380@17380-1629277454650087-31118.rdb read value error [2021-08-18 17:04:16.006] rmt_redis.c:6616 ERROR: Short read or OOM loading DB. Unrecoverable error, aborting now. [2021-08-18 17:04:16.030] rmt_redis.c:6715 ERROR: Rdb file for node[192.168.1.181:7380@17380] parsed failed [2021-08-18 17:04:16.064] rmt_redis.c:1623 MASTER <-> SLAVE sync: RDB data for node[192.168.1.156:7380@17380] is received, used: 1 s [2021-08-18 17:04:16.064] rmt_redis.c:1643 rdb file node192.168.1.156:7380@17380-1629277454700501-31118.rdb write complete [2021-08-18 17:04:16.112] rmt_redis.c:6170 ERROR: Unknown object type [2021-08-18 17:04:16.112] rmt_redis.c:6542 ERROR: redis rdb file node192.168.1.156:7380@17380-1629277454700501-31118.rdb read value error

15250980346 commented 3 years ago

I have modified the src/rmt_redis.c file,(#define REDIS_RDB_VERSION 10)