Open GoogleCodeExporter opened 8 years ago
Sorry. Proper subject: SELECT is ignored while DB is loading
Redis 2.2.2, Ubuntu 10.4 x86
SELECT is silently ignored while Redis is loading database. It must either
fail, or work properly.
To reproduce:
1. Fill redis with huge amount of data (I filled DB 15, may not work with
default DB 0, didn't tried), so it would spend several seconds loading.
2. Restart redis
3. While redis is *loading*, connect to it and say SELECT 15. Redis will reply
OK
4. When redis is *finished* loading, say KEYS *. It will return keys from DB 0.
See semi-automatic script to reproduce the issue and INFO output here:
https://gist.github.com/900845
Original comment by aglad...@gmail.com
on 3 Apr 2011 at 9:36
Erm...
SELECT returns -LOADING, that's clearly a failure.
Why on Earth did I decide that it returns OK?
Sorry for confusion, please close this issue.
Original comment by aglad...@gmail.com
on 3 Apr 2011 at 9:48
Original issue reported on code.google.com by
aglad...@gmail.com
on 3 Apr 2011 at 9:28