The following warning is happening very often in watchdog:
Exception caught in dmemcache_get_multi: MemcachePool::get(): Failed to uncompress data

Not sure why it's happening.
There is only one Drupal instance on Debian.
Restarting doesn't help.

Comments

kenorb’s picture

Please note:

duerra at nospam dot yahoo dot com (18-Nov-2010 12:06)

If you're interested in using compression, please note that, at least for PHP version 5.3.2 and Memcache version 3.0.4, when retrieving a key who's value is a numeric or boolean type, PHP throws a notice of the following:

Message: MemcachePool::get(): Failed to uncompress data

The way around this is to test your variable type before setting or adding it to Memcache, or even cast it as a string.

$key = 'mc_key';
$value = 12345;
$compress = is_bool($value) || is_int($value) || is_float($value) ? false : MEMCACHE_COMPRESSED;

$mc= new Memcache;
$mc->connect('localhost', 11211);
$mc->add($key, $value, $compress);

echo $mc->get($key);

//Alternative is to cast the variable
$value = is_scalar($value) ? (string)$value : $value;
$mc->add($key, $value, MEMCACHE_COMPRESSED);

Source: http://www.wapm.cn/phpdoc/en/memcache.add.html

Jeremy’s picture

Status: Active » Fixed

Upgrade your version of Memcache PECL extension to the latest.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.