Bug #53262
FileBakend have some race condition
Status: | New | Start date: | 2013-11-01 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Dominique Feyer | % Done: | 0% |
|
Category: | Cache | |||
Target version: | - | |||
PHP Version: | Complexity: | |||
Has patch: | Yes | Affected Flow version: | (any) |
Description
One of the problem is that get() can be called before the file is available, so we need multiple try of file_get_contents like we have in set() for the rename. In the patch, I add a usleep, really short, to increase the wait time a bit between each try.
Related issues
Associated revisions
[TASK] Add support for file locking in (Simple)FileBackend
With concurrent access the current FileBackend and SimpleFileBackend can
be racy, this patch adds a strict file locking when writing and shared
locking when ready to avoid this problem.
Change-Id: Iaf0b42cf94c1e9fd4392267dda5afef4042b0be7
Related: #53262
Releases: master