mant1988 / redis

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

HGET errors on binary packed keys and hashes #616

Closed GoogleCodeExporter closed 8 years ago

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

2.2.11 32but on Ubuntu 10.04 X64

What is the problem you are experiencing?

HGET responds with "ERR wrong number of arg" when passed binary packed key and 
hash

What steps will reproduce the problem?

Query the database with a specific data set.

Please provide any additional information below.

Im packing 16 bit Hash keys and then using a packed hash for the remainer 48 
bits of the hash.  As redis says its binary ready, I thought this would work 
(and it does) to reduce DB size but its randomly failing for no reason.  
Attached are two tcpdump captures, showing the fail and success with two 
different binary hash/keys.  Just ignore the memcache

Original issue reported on code.google.com by p...@stopforumspam.com on 29 Jul 2011 at 9:23

Attachments:

GoogleCodeExporter commented 8 years ago
You're using the inline protocol: basically a single line, split on whitespace, 
followed by an \r\n. This, obviously, cannot be used to transport any binary 
payload. You need to use the newer protocol, which does work with any payload. 
Please refer to the website for protocol documentation, or use a client 
implementation that supports this protocol.

Original comment by pcnoordh...@gmail.com on 30 Jul 2011 at 9:57