Bug #53262

FileBakend have some race condition

Added by Dominique Feyer almost 2 years ago. Updated almost 2 years ago.

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

related to TYPO3.Flow - Bug #44203: Session implementation is still racy Needs Feedback 2012-12-22

Associated revisions

Revision 504f642d
Added by Dominique Feyer 10 months ago

[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

Also available in: Atom PDF