当我尝试从 redis cloud 中的同一版本 master 同步时出现以下错误:
# Server started, Redis version 2.8.12
* The server is now ready to accept connections on port 6379
* Connecting to MASTER pub-redis-99999.us-east-1-3.1.ec2.garantiadata.com:99999
* MASTER <-> SLAVE sync started
* Non blocking connect for SYNC fired the event.
* Master replied to PING, replication can continue...
* (Non critical) Master does not understand REPLCONF listening-port: -ERR wrong number of arguments for 'REPLCONF' command
* Partial resynchronization not possible (no cached master)
* Master does not support PSYNC or is in error state (reply: -ERR wrong number of arguments for 'PSYNC' command)
* Retrying with SYNC...
# MASTER aborted replication with an error: ERR unauthenticated session
我肯定提供了正确的 masterauth 密码,所以它一定是别的。有人见过这种情况吗?
答案1
因此这是由于 Redis Labs 阻止其他命令之间的同步造成的。有关详细信息,请参阅https://redislabs.com/company/faqs#are-you-fully-compatible-with-open-source-redis。