Activity log for bug #1067242

Date Who What changed Old value New value Message
2012-10-16 07:52:59 yunhua.lee bug added bug
2012-10-16 08:05:13 yunhua.lee description memcached support => enabled Version => 2.1.0 libmemcached version => 1.0.10 I set a negative or non-numeric value to a key, and then increment it. The increment operation failed, error code and msg as following: ========================================================= ["errorMsg"]=> string(12) "CLIENT ERROR" ["errorNo"]=> int(9) ========================================================= and more ***seriously***, the following set or get operation also failed, error code and msg as following: =========================set operation==================== ["errorMsg"]=> string(51) "SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY" ["errorNo"]=> int(47) =========================get operation==================== ["errorMsg"]=> string(9) "NOT FOUND" ["errorNo"]=> int(16) phpunit test code as following( some code is simple encapsulated, not original api ): ======================================================== //test negative number $value = -1; $result = $mc->set($keyPrefix, $key, $value); $this->assertTrue(Result::check($result)); $result = $mc->get($keyPrefix, $key); $this->assertEquals($value, Result::getData($result)); $result = $mc->increment($keyPrefix, $key, 1); //var_dump($result); //$this->assertTrue(Result::check($result)); //$this->assertEquals($value + 1, Result::getData($result)); //test non-numeric $value = 'str'; $result = $mc->set($keyPrefix, $key, $value); var_dump($result); //$this->assertTrue(Result::check($result)); $result = $mc->get($keyPrefix, $key); var_dump($result); $result = $mc->set($keyPrefix, $key, $value); var_dump($result); $result = $mc->get($keyPrefix, $key); var_dump($result); I don't test decrement operation, but I guess it will have the same problem...... memcached support => enabled Version => 2.1.0 libmemcached version => 1.0.10 I set a negative or non-numeric value to a key, and then increment it. The increment operation failed, error code and msg as following: =========================================================   ["errorMsg"]=>   string(12) "CLIENT ERROR"   ["errorNo"]=>   int(9) ========================================================= and more ***seriously***, the following set or get operation also failed, error code and msg as following: =========================set operation====================   ["errorMsg"]=>   string(51) "SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY"   ["errorNo"]=>   int(47) =========================get operation====================   ["errorMsg"]=>   string(9) "NOT FOUND"   ["errorNo"]=>   int(16) phpunit test code as following( some code is simply encapsulated, not original api ): ========================================================        //test negative number         $value = -1;         $result = $mc->set($keyPrefix, $key, $value);         $this->assertTrue(Result::check($result));         $result = $mc->get($keyPrefix, $key);         $this->assertEquals($value, Result::getData($result));         $result = $mc->increment($keyPrefix, $key, 1);         //var_dump($result);         //$this->assertTrue(Result::check($result));         //$this->assertEquals($value + 1, Result::getData($result));         //test non-numeric         $value = 'str';         $result = $mc->set($keyPrefix, $key, $value);         var_dump($result);         //$this->assertTrue(Result::check($result));         $result = $mc->get($keyPrefix, $key);         var_dump($result);         $result = $mc->set($keyPrefix, $key, $value);         var_dump($result);         $result = $mc->get($keyPrefix, $key);         var_dump($result); I don't test decrement operation, but I guess it will have the same problem......
2012-10-16 08:05:26 yunhua.lee summary increment operation cause connection error! Increment operation causes connection error!
2012-11-11 08:40:45 Brian Aker libmemcached: assignee Brian Aker (brianaker)
2012-11-11 08:40:56 Brian Aker summary Increment operation causes connection error! Increment operation causes connection error! (bug in server)
2012-11-12 06:40:39 Brian Aker libmemcached: milestone 1.0.14
2012-11-12 06:40:45 Brian Aker libmemcached: importance Undecided High
2012-11-12 06:40:49 Brian Aker libmemcached: status New Fix Committed
2012-11-12 06:41:13 Launchpad Janitor branch linked lp:~tangent-org/libmemcached/1.0-build
2012-12-23 06:55:21 Brian Aker libmemcached: status Fix Committed Fix Released