Skip to content
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

Lock storr namespaces when setting worker status #402

Merged
merged 4 commits into from
Jun 3, 2018
Merged

Lock storr namespaces when setting worker status #402

merged 4 commits into from
Jun 3, 2018

Conversation

wlandau
Copy link
Member

@wlandau wlandau commented Jun 3, 2018

Summary

This PR is an attempt to make message-passing from the master to the workers safer. It is simply a set of precautions, I have not actually encountered race conditions in real projects with parallel computing.

The real solution is a serious thread safe message queue, but finding one will take some time.

Related GitHub issues

Checklist

  • I have read drake's code of conduct, and I agree to follow its rules.
  • I have read the guidelines for contributing.
  • I have listed any substantial changes in the development news.
  • I have added testthat unit tests to tests/testthat to confirm that any new features or functionality work correctly.
  • I have tested this pull request locally with devtools::check()
  • This pull request is ready for review.
  • I think this pull request is ready to merge.

@codecov-io
Copy link

codecov-io commented Jun 3, 2018

Codecov Report

Merging #402 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #402   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          65     65           
  Lines        5223   5228    +5     
=====================================
+ Hits         5223   5228    +5
Impacted Files Coverage Δ
R/future.R 100% <ø> (ø) ⬆️
R/mclapply.R 100% <100%> (ø) ⬆️
R/cache.R 100% <100%> (ø) ⬆️
R/handlers.R 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0cb0fa2...b83deb8. Read the comment docs.

@wlandau
Copy link
Member Author

wlandau commented Jun 3, 2018

Checks also pass for 2 real projects.

@wlandau wlandau merged commit 1c21993 into master Jun 3, 2018
@wlandau wlandau deleted the mc_lock branch June 3, 2018 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants