Project

General

Profile

Actions

Bug #103294

closed

Race condition in DI cache persistence

Added by Benjamin Franzke 9 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Category:
System/Bootstrap/Configuration
Start date:
2024-03-06
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

With #90418 the container cache has been excluded from the
regular cache-flush-pipeline.
Therefore flushing has been explicitly performed when writing a
new cache entry (with the intent to clean up old cache entries).

Issue is: Cleaning up the entire folder by deleting the folder means
a concurrent request – that is creating the same DI cache as well –
will fail to write the cache when the folder is (re)moved in that
moment.


In SimpleFileBackend.php line 232:

  The temporary cache file "/var/www/html/typo3temp/var/cache/code/di/65e832cba8809119262340.temp" could not be written.  


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #90418: Improve dependency injection container cachingClosed2020-02-18

Actions
Actions

Also available in: Atom PDF