6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
1/10/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#14258] File based cache garbage collection broken
*
Your Email Address
*
Spam protection
Enter the letters below:
._.. .. ..__..__ | |__|| || |[ __ _|_| ||__||__\[_./
Comment
> I'm not sure if this will fully solve the problem. This patch seems > to fix the problem of adding cache files to horde_cache_gc where they > don't belong, but looking at the old horde_cache_gc files, it also > looks there is an issue with locking the horde_cache_gc files > somewhere. > > As far as I can see, the format of these files is one cache file > followed by a timestamp per line. Like the following entry from the > /var/lib/php5/horde/cache/a/0/0/horde_cache_gc file (showing the > problem that it contains a cache file that shouldn't be there that is > fixed by this patch): > > /var/lib/php5/horde/cache/0/0/0/cache_000bde1edaebadae73f8069438a0bccd > 1455770298 > > But looking further down this same file, I also see lines like > > /var/lib/p > 5/horde/cache/1/c/6/cache_1c664138a4d63a5d7c5b1e76f81002ae 1455977208 > > (yes, two lines) > > /var/lib/php5/horde//var/lib/php5/horde/cache/1/f/d/cache_1fd41d3ae5f1c30fd29cfc831456143345 > > (no timestamp and really wonky looking directory) > > /var/lib/php/var/lib/php5/horde/ <20000+ characters removed> > a/f/5/cache_af5590ec1fa2401f6cac6b4cf9a5a5d3 1456247333 > > It looks to me there might also be a problem with file locking. What > happens if new entries are added to the horde_cache_gc file while in > the midst of of GC? The above examples look to me as if two processes > are writing to the same file simultaneously.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers