[PP-1] Race condition with locale javascript translation generation

Created on 30 April 2018, about 6 years ago
Updated 28 August 2023, 10 months ago

When we run our behat tests suite we run into a notice being shown on test pages from time to time:

User Notice: <em class="placeholder">Warning</em>: file_get_contents(public://languages/de_k6dYjbIG0GfEJl3YPQE4ZRnL5Rg9BPdBO3slQkKDHL0.js): failed to open stream: &quot;Drupal\Core\StreamWrapper\PublicStream::stream_open&quot; call failed in <em class="placeholder">Drupal\Core\Asset\JsOptimizer-&gt;optimize()</em> (line <em class="placeholder">25</em> of <em class="placeholder">/srv/default/vcs/web/core/lib/Drupal/Core/Asset/JsOptimizer.php</em>) #0 /srv/default/vcs/web/core/includes/bootstrap.inc(582): _drupal_error_handler_real(2, &#039;file_get_conten...&#039;, &#039;/srv/default/vc...&#039;, 25,

However, with further debugging the error is not reproducible in any way during regular site operation (with any kind of state of caches and state). I think it's caused by a race condition when the behat + drupal driver process and a request trigger both the generation of the same file, as in watchdog the notice of locale translation being triggered can be found twice in the "error" case.

πŸ› Bug report
Status

Postponed

Version

11.0 πŸ”₯

Component
LocaleΒ  β†’

Last updated 3 days ago

Created by

πŸ‡¦πŸ‡ΉAustria fago Vienna

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024