You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason in this case is an incomplete data file when using the FileBackend (other backends are probably not affected) which is weird, because our cache writes should be atomic.
LOCK_EX will not prevent reading the file unless you also explicitly acquire a read lock (shared locked), so that other pcoesses may very well read the file while it is written, leading to incomplete data.
Description
When the same session is used concurrently, sometimes the session seemingly ends.
The log then shows an exception about
unserialize()
not being able to process the value retrieved from the cache backend inflow-development-collection/Neos.Cache/Classes/Frontend/VariableFrontend.php
Line 94 in cb92ea7
The reason in this case is an incomplete data file when using the
FileBackend
(other backends are probably not affected) which is weird, because our cache writes should be atomic.Steps to Reproduce
Expected behavior
A cache file is either written or not.
Actual behavior
Incomplete cache files are written.
Reason
Maybe this line is wrong?
flow-development-collection/Neos.Cache/Classes/Backend/SimpleFileBackend.php
Line 541 in cb92ea7
$result
is alwaystrue
afterwards, which certainly is not intended… that has been changed in e80c5a9#diff-81c872d2429d48a1767632c0255f66f1281ec7a1a339b2f715b9af72322409f4L541-R541Affected Versions
Flow: 6.3+
The text was updated successfully, but these errors were encountered: