-
Notifications
You must be signed in to change notification settings - Fork 11
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
Thread-safety improvements #122
base: master
Are you sure you want to change the base?
Conversation
This should fix an exception seen in CI from the lingering timeout task: ``` Test Summary: | Pass Total Time Deserialization error recovery and include() | 11 11 3.9s From worker 4: Unhandled Task ERROR: EOFError: read end of file From worker 4: Stacktrace: From worker 4: [1] wait From worker 4: @ .\asyncevent.jl:159 [inlined] From worker 4: [2] sleep(sec::Float64) From worker 4: @ Base .\asyncevent.jl:265 From worker 4: [3] (::DistributedNext.var"#34#37"{DistributedNext.Worker, Float64})() From worker 4: @ DistributedNext D:\a\DistributedNext.jl\DistributedNext.jl\src\cluster.jl:213 ```
.github/workflows/ci.yml
Outdated
@@ -44,6 +44,7 @@ jobs: | |||
- uses: julia-actions/julia-runtest@v1 | |||
env: | |||
JULIA_DISTRIBUTED_TESTING_STANDALONE: 1 | |||
JULIA_NUM_THREADS: 4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JULIA_NUM_THREADS: 4 | |
JULIA_NUM_THREADS: 4,4 |
Shake out having lots of threads in both pools?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep makes sense; fixed in 2874281.
The test failures are coming from replacing I think it's best to be conservative with this update so I'm going to revert that commit. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #122 +/- ##
==========================================
+ Coverage 79.29% 79.50% +0.21%
==========================================
Files 10 10
Lines 1922 1918 -4
==========================================
+ Hits 1524 1525 +1
+ Misses 398 393 -5 ☔ View full report in Codecov by Sentry. |
The `launched_q` array is filled concurrently by the launcher tasks for each worker. Now it's wrapped inside `Base.Lockable` for thread-safety.
2be833c
to
877be4f
Compare
As discussed offline, added back the commits replacing |
CC @jpsamaroo