akwei / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

Log records inconsistent #359

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. See attached php script

What is the expected output? What do you see instead?

In log file, using -vv verbosity:

Expected:

<40 new ascii client connection.
<40 version
>40 VERSION 1.4.13
<40 set test-get_record/10431/US 1 10800 6
>40 STORED
<40 get test-get_record/10431/US
>40 sending key test-get_record/10431/US
>40 END
<40 connection closed.

Seeing instead: (notice extra character appended to key name during send 
"test-get_record/10431/USt").  I was also not expecting to see the actual key 
value in the logfile:

<40 new ascii client connection.
<40 version
>40 VERSION 1.4.13
<40 set test-get_record/10431/US 1 10800 6
>40 STORED
<40 get test-get_record/10431/US
>40 sending key test-get_record/10431/USt 1 6
a:0:{}

>40 END
<40 connection closed.

What version of the product are you using? On what operating system?

Using Memcached 1.4.13 on Debian 7 (Wheezy), PHP 5.4 with 

Installed packages, channel pecl.php.net:
=========================================
Package  Version State
memcache 2.2.7   stable

Please provide any additional information below.

Trying to use the log file for testing, but inconsistent results appear when 
storing an empty array. 

Thank you in advance!

Original issue reported on code.google.com by lightspe...@gmail.com on 31 Mar 2014 at 10:40

Attachments:

GoogleCodeExporter commented 9 years ago
Have you tried the latest version? I think this is fixed by adjusting the 
logging to print based on the item/key length and not looking for a null 
terminated string...

Original comment by dorma...@rydia.net on 31 Mar 2014 at 10:43

GoogleCodeExporter commented 9 years ago
I'm not sure what you mean by "adjusting the logging to print based on the 
item/key length", but it does seem that version 1.4.17 doesn't have the same 
issue.  I had downloaded and compile 1.4.17 today, but didn't think to manually 
remove the older version first.

Thank you for the help!

Original comment by lightspe...@gmail.com on 1 Apr 2014 at 12:20

GoogleCodeExporter commented 9 years ago
closing

Original comment by dorma...@rydia.net on 1 Apr 2014 at 7:32