Bug #33622

Filebackend reports error when trying to rename file due to concurrent processes

Added by Peter Russ over 7 years ago. Updated almost 4 years ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Caching
Target version:
-
Start date:
2012-02-02
Due date:
% Done:

80%

TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Due to concurrent processes it happens that a temp-cache-file gets renamed while an other process is just writing it.
Further there is an error in the error handling.

We fixed both.
  1. added an exclusive lock for the writing operation
  2. added counters for a break to avoid an endless loop due to file system errors
  3. added timers for getting the process to sleep
  4. fixed error handling

As this is the same in FLOW3 I also reported the bug and fixes there.
see http://forge.typo3.org/issues/33621

Please find TYPO3 specific fixes attached.

33622.patch View (9.34 KB) Peter Russ, 2012-02-02 14:31


Related issues

Related to TYPO3 Core - Bug #46205: Cache file could not be written on concurrent actions Closed 2013-03-12

History

#1 Updated by Peter Russ over 7 years ago

  • File 33622.patch View added
  • Target version set to 4.5.12
  • % Done changed from 0 to 80

#2 Updated by Marc Bastian Heinrichs over 6 years ago

Exception timestamp is 1222361632, right?. Had this already on different systems, too.

Peter, you uploaded the wrong patchfile, aren't you?

#3 Updated by Max Roesch over 6 years ago

Just stumpling upon this on a TYPO3 6.0.4 installation at Hosteurope.

Core has the patch from FLOW3 but nevertheless I am running in the same error.

#4 Updated by Oliver Hader over 6 years ago

The cache file ".../t3lib_l10n/3e2cbbda0301cf592e5831ef26c56b7b" could not be written.
This issue has been solved on concurrent editing actions in the backend for 4.7, 6.0 and 6.1 in issue #46205
However, that does not solve the original issue in the FileBackend that probably needs to be solved by locking mechanisms

#5 Updated by Mathias Schreiber almost 5 years ago

  • Target version changed from 4.5.12 to 7.3 (Packages)
  • Is Regression set to No

#6 Updated by Benni Mack over 4 years ago

  • Target version changed from 7.3 (Packages) to 7.4 (Backend)

#7 Updated by Susanne Moog about 4 years ago

  • Target version changed from 7.4 (Backend) to 7.5

#8 Updated by Benni Mack about 4 years ago

  • Target version changed from 7.5 to 7 LTS

#9 Updated by Mathias Schreiber almost 4 years ago

  • Target version deleted (7 LTS)

Also available in: Atom PDF