Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295845

Race condition with locale javascript translation generation

$
0
0

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.


Viewing all articles
Browse latest Browse all 295845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>