microsoftarchive / redis

Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes
http://redis.io
Other
20.78k stars 5.37k forks source link

Slave is not able to synchronize with master if persistence-available no and repl-diskless-sync yes #507

Open SergeyZubatkin opened 7 years ago

SergeyZubatkin commented 7 years ago

Hello Redis_version: 3.2.100 OS: Microsoft Windows 10 Pro Slave is not able to synchronize with master if persistence-available no and repl-diskless-sync yes

master.conf

port 6379
protected-mode no
maxmemory 2g
loglevel debug
dir D:\Developments\Redis\Redis-x64-3.2.100\testconfigs
logfile D:\Developments\Redis\Redis-x64-3.2.100\testconfigs\masterlog.txt
persistence-available no
repl-diskless-sync yes

slave.conf

port 6380
protected-mode no
maxmemory 2g
loglevel debug
dir D:\Developments\Redis\Redis-x64-3.2.100\testconfigs
logfile D:\Developments\Redis\Redis-x64-3.2.100\testconfigs\slavelog.txt
persistence-available no
repl-diskless-sync yes
slaveof MY_PC_IP 6379

masterlog.txt

[4864] 04 Oct 11:04:08.622 # Server started, Redis version 3.2.100
[4864] 04 Oct 11:04:08.623 * The server is now ready to accept connections on port 6379
[4864] 04 Oct 11:04:08.623 - 0 clients connected (0 slaves), 631456 bytes in use
[4864] 04 Oct 11:04:08.823 - Accepted MY_PC_IP:58691
[4864] 04 Oct 11:04:08.824 - Accepted MY_PC_IP:58690
[4864] 04 Oct 11:04:08.824 - Accepted MY_PC_IP:58689
[4864] 04 Oct 11:04:08.825 - Accepted MY_PC_IP:58688
[4864] 04 Oct 11:04:13.629 - 4 clients connected (0 slaves), 715144 bytes in use
[4864] 04 Oct 11:04:18.646 - 4 clients connected (0 slaves), 715144 bytes in use
[4864] 04 Oct 11:04:23.193 - Accepted MY_PC_IP:58692
[4864] 04 Oct 11:04:23.230 - Reading from client: An existing connection was forcibly closed by the remote host.
[4864] 04 Oct 11:04:23.665 - 4 clients connected (0 slaves), 715144 bytes in use
[4864] 04 Oct 11:04:24.199 - Accepted MY_PC_IP:58693
[4864] 04 Oct 11:04:24.205 - Reading from client: An existing connection was forcibly closed by the remote host.
[4864] 04 Oct 11:04:25.207 - Accepted MY_PC_IP:58694
[4864] 04 Oct 11:04:25.212 - Reading from client: An existing connection was forcibly closed by the remote host.
[4864] 04 Oct 11:04:26.213 - Accepted MY_PC_IP:58695
[4864] 04 Oct 11:04:26.217 - Reading from client: An existing connection was forcibly closed by the remote host.

slavelog.txt

[11632] 04 Oct 11:04:23.191 # Server started, Redis version 3.2.100
[11632] 04 Oct 11:04:23.191 * The server is now ready to accept connections on port 6380
[11632] 04 Oct 11:04:23.192 - 0 clients connected (0 slaves), 631472 bytes in use
[11632] 04 Oct 11:04:23.192 * Connecting to MASTER MY_PC_IP:6379
[11632] 04 Oct 11:04:23.192 * MASTER <-> SLAVE sync started
[11632] 04 Oct 11:04:23.193 * Non blocking connect for SYNC fired the event.
[11632] 04 Oct 11:04:23.194 * Master replied to PING, replication can continue...
[11632] 04 Oct 11:04:23.194 * (Non critical) Master does not understand REPLCONF listening-port: -ERR unknown command 'REPLCONF'
[11632] 04 Oct 11:04:23.194 * (Non critical) Master does not understand REPLCONF capa: -ERR unknown command 'REPLCONF'
[11632] 04 Oct 11:04:23.195 * Partial resynchronization not possible (no cached master)
[11632] 04 Oct 11:04:23.195 * Master does not support PSYNC or is in error state (reply: -ERR unknown command 'PSYNC')
[11632] 04 Oct 11:04:23.195 * Retrying with SYNC...
[11632] 04 Oct 11:04:23.229 # MASTER aborted replication with an error: ERR unknown command 'SYNC'
[11632] 04 Oct 11:04:24.198 * Connecting to MASTER MY_PC_IP:6379
[11632] 04 Oct 11:04:24.199 * MASTER <-> SLAVE sync started
[11632] 04 Oct 11:04:24.202 * Non blocking connect for SYNC fired the event.
[11632] 04 Oct 11:04:24.202 * Master replied to PING, replication can continue...
[11632] 04 Oct 11:04:24.203 * (Non critical) Master does not understand REPLCONF listening-port: -ERR unknown command 'REPLCONF'
[11632] 04 Oct 11:04:24.203 * (Non critical) Master does not understand REPLCONF capa: -ERR unknown command 'REPLCONF'
[11632] 04 Oct 11:04:24.204 * Partial resynchronization not possible (no cached master)
[11632] 04 Oct 11:04:24.204 * Master does not support PSYNC or is in error state (reply: -ERR unknown command 'PSYNC')
[11632] 04 Oct 11:04:24.204 * Retrying with SYNC...
[11632] 04 Oct 11:04:24.205 # MASTER aborted replication with an error: ERR unknown command 'SYNC'