6.0.0-beta1
8/29/25

[#14421] Horde_Memcache error messages with compression threshold
Summary Horde_Memcache error messages with compression threshold
Queue Components
Type Bug
State Resolved
Priority 2. Medium
Owners jan (at) horde (dot) org
Requester wahnes (at) uni-koeln (dot) de
Created 07/08/2016 (3339 days ago)
Due
Updated 07/11/2016 (3336 days ago)
Assigned
Resolved 07/11/2016 (3336 days ago)
Github Issue Link
Github Pull Request
Milestone 2.1.1
Patch No

History
07/11/2016 03:59:02 PM Jan Schneider Assigned to Jan Schneider
State ⇒ Resolved
Milestone ⇒ 2.1.1
 
07/11/2016 03:58:55 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit bba5d6587283317a0e82b24906ab5579cdb33ecb
Author: Jan Schneider <jan@horde.org>
Date:   Mon Jul 11 17:58:44 2016 +0200

     Need to set the threshold after the servers have been added (Bug #14421).

  framework/Memcache/lib/Horde/Memcache.php | 8 +++++---
  framework/Memcache/package.xml            | 4 ++--
  2 files changed, 7 insertions(+), 5 deletions(-)

http://github.com/horde/horde/commit/bba5d6587283317a0e82b24906ab5579cdb33ecb
07/08/2016 07:47:51 AM wahnes (at) uni-koeln (dot) de Comment #1
Priority ⇒ 2. Medium
Patch ⇒ No
Milestone ⇒
Queue ⇒ Components
Summary ⇒ Horde_Memcache error messages with compression threshold
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
With Version 2.1.0 of Horde_Memcache, a warning is written to the 
logfile many times. It states

WARN: HORDE PHP ERROR: MemcachePool::setcompressthreshold(): No 
servers added to memcache connection [pid 24267 on line 167 of 
"/usr/share/pear/Horde/Memcache.php"]

if using more than one memcache server, compression, and a compression 
threshold. This does not happen with version 2.0.7 of Horde_Memcache.

The exact Horde configuration used in this case looked like this:

$conf['hashtable']['params']['hostspec'] = array('localhost', 'foo');
$conf['hashtable']['params']['port'] = array('11211', '11211');
$conf['hashtable']['params']['weight'] = array('90', '10');
$conf['hashtable']['params']['persistent'] = true;
$conf['hashtable']['params']['c_threshold'] = 1200;
$conf['hashtable']['params']['compression'] = true;
$conf['hashtable']['params']['large_items'] = true;
$conf['hashtable']['driver'] = 'Memcache';

Saved Queries