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.81k stars 5.37k forks source link

slaveof results in "master_link_status:down" in 3.2.100. Works in 3.0.504 #493

Open vzalamea opened 8 years ago

vzalamea commented 8 years ago

Installed from .msi to run as windows service on 2 separate machines (ServerA and ServerB)

Open redis-cli on ServerB and run "slaveof ServerA 6379"

"info replication" on ServerA # Replication role:master connected_slaves:0 master_repl_offset:0 repl_backlog_active:0 repl_backlog_size:1048576 repl_backlog_first_byte_offset:0

"info replication" on ServerB # Replication role:slave master_host:ServerA master_port:6379 master_link_status:down master_last_io_seconds_ago:-1 master_sync_in_progress:0 slave_repl_offset:1 master_link_down_since_seconds:jd slave_priority:100 slave_read_only:1 connected_slaves:0 master_repl_offset:0 repl_backlog_active:0 repl_backlog_size:1048576 repl_backlog_first_byte_offset:0 repl_backlog_histlen:0

Not sure what doing wrong here. If I perform these same steps on 3.0.504, it works.

ohadinho commented 8 years ago

Same for me. I've been scratching my head for hours trying to figure out what's wrong with my simple configurations.. seems like a bug. That's what's written in the server log: Unknown error [9372]