svenxie / redis

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

redis server give an empty response on EXISTS command #590

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Redis 2.2.7 on ubuntu 10.10 as VPS on XEN System

sometimes, redis server returns an empty response instead of :0\r\n
to an EXISTS command. 

Create some keys as Hash keys and Delete it. 
After a Delete if you check of key existance using EXISTS, the server returns 
an empty response. 

I'm assuming now that empty response is equivalent to :0\r\n but i'm not sure 
it's right. 

I'll attach an auto-produced log information

SREM
$10
characters
$2
28
06:09:10 :1
06:09:10 S: *2
$3
DEL
$12
character_28
06:09:10 :1
06:09:10 S: *3
$4
SREM
$5
users
$1
6
06:09:10 :1
06:09:10 S: *2
$3
DEL
$6
user_6
06:09:10 :1
07:12:13 S: *2
$6
EXISTS
$6
user_5
07:12:13 R:

R: is a response
S: is a command
before S: or R: you have a time information
it seems to happen randomly

Original issue reported on code.google.com by ppossanz...@gmail.com on 20 Jun 2011 at 4:39

GoogleCodeExporter commented 8 years ago
If the time format is HH:MM:DD, the connection will be timed out when EXISTS is 
called. It seems you're interacting with Redis on a pretty low level, where a 
read operation against a closed socket results in 0 bytes (which should be 
interpreted as EOF).

Original comment by pcnoordh...@gmail.com on 20 Jun 2011 at 5:12

GoogleCodeExporter commented 8 years ago
the time format is hh:mm:ss 

Original comment by ppossanz...@gmail.com on 20 Jun 2011 at 5:28

GoogleCodeExporter commented 8 years ago
Thanks, that was a typo. I meant hh:mm:ss.

Original comment by pcnoordh...@gmail.com on 20 Jun 2011 at 5:32

GoogleCodeExporter commented 8 years ago
i've managed the connection in a different way and now it works. thanks for 
your time. 

Original comment by ppossanz...@gmail.com on 20 Jun 2011 at 6:37