-
-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Simple backend not thread safe #554
Comments
Thank you for the issue report. I can report that I can reproduce the issue with the steps you've provided. Replacing the |
Ok, looks like Does that work for your case too, @bjfish? |
@radar Yes, this fixes the issue, thanks. |
@bjfish Great. I'll do a 1.8.8 release shortly with this commit included. |
All done. Thank you @bjfish. |
What I tried to do
I tried to run rails tests in parallel using threads and got test failures similar to the following example.
https://github.com/rails/rails/blob/291a3d2ef29a3842d1156ada7526f4ee60dd2b59/activesupport/lib/active_support/test_case.rb#L83
Example Code
What I expected to happen
prints:
Done
What actually happened
Comments
Potentially unsafe code here:
https://github.com/ruby-i18n/i18n/blob/v1.8.7/lib/i18n/backend/simple.rb#L43-L45
Maybe this should be a
Concurrent::Hash
?The text was updated successfully, but these errors were encountered: