Closed GoogleCodeExporter closed 9 years ago
Hello, can't reproduce this with Redis 1.1.x, I think some bug was fixed in the
meantime and this bug is no longer affecting Redis head.
For instance there is a bug that makes the slave crash if the INFO command is
called
while it's not connected to the master, and from the stack trace I can see the
problem
was around the info commnad. Maybe you have some script calling INFO against
the
no longer connected slave?
Cheers,
Salvatore
Original comment by anti...@gmail.com
on 18 Dec 2009 at 10:14
Tried today - you are correct. The slave loops with
"
18 Dec 16:15:55 * Unable to connect to MASTER: Connection refused
18 Dec 16:15:56 - Connecting to MASTER...
"
until an INFO is sent to master, in which case the salve crashes.
Attached is a patch against 1.02 which solves this issue (Tested and no longer
crashes when info is called).
This is after the master has been shutdown but slave is still alive:
>>> r.info()
{u'total_connections_received': 1, u'connected_clients': 1,
u'master_link_status':
u'down', u'used_memory': 5209, u'master_last_io_seconds_ago': 0, u'master_host':
u'tsavanna64', u'db0': u' keys=1,expires=0', u'total_commands_processed': 1,
u'changes_since_last_save': 0, u'role': u'slave', u'uptime_in_seconds': 10,
u'uptime_in_days': 0, u'master_port': 6379, u'connected_slaves': 0,
u'bgsave_in_progress': 0, u'last_save_time': 1261153635, u'redis_version':
u'1.02'}
Original comment by kata...@gmail.com
on 18 Dec 2009 at 4:30
Attachments:
thanks,
given that's already fixed in 1.2.0-rc4 I think I'll not fix 1.0.x about this,
we are very
near to 1.2.0-stable. If 1.2 will delay maybe I'll do another 1.0 release.
Original comment by anti...@gmail.com
on 18 Dec 2009 at 6:10
Original comment by anti...@gmail.com
on 23 Aug 2010 at 4:17
Original issue reported on code.google.com by
aryehk...@gmail.com
on 17 Dec 2009 at 5:24