snehac-miner / redis

Automatically exported from code.google.com/p/redis
0 stars 0 forks source link

Slave node won't SYNC with Master requiring AUTH #86

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Enable a required pass on a master node, and start it.
2. Set up a slave node.
3. Start the slave node.

What is the expected output? 
03 Nov 18:12:09 - Connecting to MASTER...
03 Nov 18:12:47 - Receiving 32628778 bytes data dump from MASTER
03 Nov 18:12:49 - MASTER <-> SLAVE sync succeeded
03 Nov 18:12:49 . Accepted 174.129.103.62:39652

What do you see instead?
03 Nov 17:51:50 - Connecting to MASTER...
03 Nov 17:51:50 - Receiving 0 bytes data dump from MASTER
03 Nov 17:51:50 * Short read or OOM loading DB. Unrecoverable error, 
exiting now

What version of the product are you using? On what operating system?
1.02 Linux

Please provide any additional information below.
In redis.c I don't see anywhere in syncWithMaster that will AUTH to the 
master node before issuing a SYNC.

Original issue reported on code.google.com by anthony....@gmail.com on 3 Nov 2009 at 6:34

GoogleCodeExporter commented 8 years ago
Indeed, this is a problem. I'll add a 'masterauth' option or something like 
this in
the config file of Redis 1.1 in order to force the slave to AUTH against the 
master.
Thanks for reporting.

Original comment by anti...@gmail.com on 3 Nov 2009 at 6:43

GoogleCodeExporter commented 8 years ago
your patch applied.

Ciao,
Salvatore

Original comment by anti...@gmail.com on 4 Nov 2009 at 8:56