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
If multiple simultaneous requests are received by Craft after compiled classes are cleared it's possible to hit a race condition when generating CustomFieldBehavior files. Resulting in:
The problem exists because the temporary files being generated are prefixed with the same filename pattern that is used to clean up any old files. This causes the first request which exits the writeToFile mutex lock to delete the temp files created by any other simultaneously processing requests, subsequently causing them to error out on the following rename().
🥩
Steps to reproduce
Clear the compiled classes cache
Send some simultaneous requests to Craft
Additional info
Craft version: 3.5
PHP version: 7.4
Database driver & version:
Plugins & versions:
The text was updated successfully, but these errors were encountered:
Description
If multiple simultaneous requests are received by Craft after compiled classes are cleared it's possible to hit a race condition when generating CustomFieldBehavior files. Resulting in:
The offending code is here:
cms/src/Craft.php
Line 275 in cefde5c
The problem exists because the temporary files being generated are prefixed with the same filename pattern that is used to clean up any old files. This causes the first request which exits the
writeToFile
mutex lock to delete the temp files created by any other simultaneously processing requests, subsequently causing them to error out on the followingrename()
.🥩
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: