Closed (fixed)
Project:
Memcache API and Integration
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Dec 2010 at 20:15 UTC
Updated:
10 Nov 2011 at 23:17 UTC
Jump to comment: Most recent file
Comments
Comment #1
mikeytown2 commentedpatch also fixes some white space issues.
Comment #2
jeremy commentedTo test, I simply stopped the memached daemon used on my development website.
With the memcache PECL extension, I see PHP errors (watchdog error type 'php') logged with and without the patch, and the 'memcache' watchdog logs are never generated. Thus, this does not appear to be working as intended.
With the memcached PECL extension, I don't see any errors generated when memcached is stopped, with or without this patch.
Comment #3
mikeytown2 commentedalt way to do it; I don't try to catch errors thrown if using memcached. For memcache I utilize track_error and a custom bootstrap watchdog handler because watchdog doesn't work this early in the start up.
Comment #4
mikeytown2 commentednicer interface; auto registers as a shutdown function now.
Comment #5
mikeytown2 commentedfix minor white space issue
Comment #6
mikeytown2 commentedComment #7
mikeytown2 commentedThis is currently in use on our production boxes; works well.
Comment #8
noslokire commentedThanks, works for me
Comment #9
mikeytown2 commentedsimplified the patch; also contains a whitespace fix
Comment #10
jeremy commentedThanks for the improvements. It works in my testing, however I also saw errors thrown by ->get() during my testing, so I've added similar logic there.
I ran this through a simpletest regression test, and did performance comparisons before and after the patch to confirm there wasn't a measurable performance hit.
Committed:
http://drupalcode.org/project/memcache.git/commitdiff/26686ad
Needs to be ported to 7.x-1.x.k
Comment #11
catchPorted to 7.x and pushed.
Comment #13
enkrypt3d commentedI tried applying this patch and it failed:
patch -p1 < memcache-1011000-9-D6.patch dmemcache.inc
patching file dmemcache.inc
Hunk #1 FAILED at 342.
1 out of 1 hunk FAILED -- saving rejects to file dmemcache.inc.rej
Does it have to be the module thats currently in use? I'm using php-pecl-memcache-3.0.4-1.el5
I'm having this same issue and its driving me nuts! More info:
CentOS / Drupal 6.15 - 6.22 / Apache 2.2 / Membase 1.7.2 / Mysql 5.5
Thanks!
Comment #14
mikeytown2 commentedIf you use the latest dev version of memcache, this patch is included.
http://drupalcode.org/project/memcache.git/shortlog/refs/heads/6.x-1.x
Comment #15
enkrypt3d commentedwhat is that link? it just looks like a bug list....
I'm not using pconnect now in my dmemcache.inc file - will enabling that fix my timeout issues?
I've been banging my head against the wall on this one... I guess I'll have to update the module entirely then?
Thanks!
Comment #16
mikeytown2 commentedLink shows what patches have been committed to the 6.x branch of memcache. So you can see that this patch has not been included in a formal release (last one being 6.x-1.9). You can see this patch was committed on 2011-06-14.
Comment #17
enkrypt3d commentedAh ok got it - sorry for all the questions .... one last one! so I Download the snapshot and just replace the dmemcache.inc file on my system with the snapshot? anything else I need to consider? Thanks!
Comment #18
catchWhen updating you should update the whole memcache directory. Moving back to fixed.
Comment #19
enkrypt3d commentedThanks - is it required to run update.php when moving to pecl-memcached from pecl-memcache?