hiddenid01 / redis

Automatically exported from code.google.com/p/redis
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

SELECT is ignored wl #509

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What version of Redis you are using, in what kind of Operating System?

What is the problem you are experiencing?

What steps will reproduce the problem?

Do you have an INFO output? Please past it here.

If it is a crash, can you please paste the stack trace that you can find in
the log file or on standard output? This is really useful for us!

Please provide any additional information below.

Original issue reported on code.google.com by aglad...@gmail.com on 3 Apr 2011 at 9:28

GoogleCodeExporter commented 9 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

GoogleCodeExporter commented 9 years ago
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