Project

General

Profile

Actions

Bug #60760

closed

Race condition during system cache flush

Added by Alexander Hense almost 10 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Category:
System/Bootstrap/Configuration
Target version:
-
Start date:
2014-08-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:

Description

TYPO3 6.2.4

When flushing the system cache there seems to be a time frame for a race condition. This can lead to different "class/interface not found" errors.

Steps to reproduce:
Use apache benchmark to start multiple concurrent requests, e.g.:

ab -n 100 -c 10 http://typo3dev.localhost/

While ab is running, flush the system cache in the backend. Now, reload the frontend to see some kind of error, e.g.:
Fatal error: Interface 'Psr\Log\LoggerInterface' not found in /home/ahense/src/TYPO3.CMS/typo3/sysext/core/Classes/Log/Logger.php on line 24

This works almost every time. For somewhat faster computers you might want to increase ab to -n 500 and -c 20.

The frontend only works again after flushing the system cache once more.

The problem seems to be a race condition which occurs when the frontend is being rendered while the system cache flushing process is still in progress. The system cache flushing does not correctly lock other calls to prevent the construction of a broken cache.


Files

example1.txt (22.4 KB) example1.txt Complete log of first example Melanie Kalka, 2016-01-07 10:47
example2.txt (36.6 KB) example2.txt Complete log of second example Melanie Kalka, 2016-01-07 10:47

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #67246: Better handling of classes loaded via ext_autoloadClosedWouter Wolters2015-06-02

Actions
Has duplicate TYPO3 Core - Bug #61670: cleared cache_classes causes fatal errorRejected2014-09-17

Actions
Has duplicate TYPO3 Core - Bug #63722: Stop flush class loader cache while rebuilding class loader.ClosedAlexander Opitz2014-12-09

Actions
Actions

Also available in: Atom PDF