-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 and once the key=>value expired, the program will stuck in the while loop, keep retrying to reconnect and redo the failed step, eats port/fd and CPU.
that's what you got and why you got that msg.
you can check the attach, which is the orig .pl with more debug msg.
Best wishes,
BlueT.
Tomash Brechko wrote:
> On Wed, Nov 12, 2008 at 10:52:12 +1030, Admin wrote:
>> Can anyone else repeat this failure, and/or provide info as to
>> a) why this happens and how to prevent it
>> or
>> b) why what we are doing is stupid and suggest a more appropriate test
>
>> while (not $memcached->add($key, $value, 1)) {
>> if ($attempt_add++ == $op_attempts) {
>
> You set expiration time to one second. Since memcached has the timer
> of 1 second granularity, it happens so that you add an item at the
> edge of a second, and it expires immediately. The solution is to not
> set the expiration time ;).
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJGqElfoJ/q1KWx6gRAm30AJ0c1spfqfe3UkYpSNJWnoh1Wgv6tACgmNTZ
9QHqbO4slRM5YCieAFEbv88=
=M2tw
-----END PGP SIGNATURE-----
test_memcached_byStep.pl
Description: Perl program
