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
As I noted in #11092 (comment), include_from_node1 is vulnerable to a race condition when Julia has more than one worker, if another task gets run while it's sleeping and starts loading a file. Not a big deal, but here's an example that triggers it:
$ julia -p1
[...]
julia>functionf()
@asyncreload("HDF5")
reload("Distributions")
end;
julia>f()
ERROR: LoadError: LoadError: could not open file /Users/simon/.julia/v0.4/ArrayViews/src/JLD.jl
in include at ./boot.jl:250in include_from_node1 at ./loading.jl:129in include at ./boot.jl:250in include_from_node1 at ./loading.jl:129in reload_path at ./loading.jl:153in _require at ./loading.jl:68in require at ./loading.jl:54in include at ./boot.jl:250in include_from_node1 at ./loading.jl:129in reload_path at ./loading.jl:153in reload at loading.jl:86in f at none:3while loading /Users/simon/.julia/v0.4/ArrayViews/src/ArrayViews.jl, in expression starting on line 2while loading /Users/simon/.julia/v0.4/Distributions/src/Distributions.jl, in expression starting on line 3
The text was updated successfully, but these errors were encountered:
As I noted in #11092 (comment),
include_from_node1
is vulnerable to a race condition when Julia has more than one worker, if another task gets run while it's sleeping and starts loading a file. Not a big deal, but here's an example that triggers it:The text was updated successfully, but these errors were encountered: