Skip to content

[Runtime Env] Fix filelock deadlock round 2#30425

Merged
simon-mo merged 5 commits intoray-project:masterfrom
simon-mo:runtime-env/fix-deadlock
Nov 18, 2022
Merged

[Runtime Env] Fix filelock deadlock round 2#30425
simon-mo merged 5 commits intoray-project:masterfrom
simon-mo:runtime-env/fix-deadlock

Conversation

@simon-mo
Copy link
Copy Markdown
Contributor

Why are these changes needed?

The previous PR #30371 didn't work on Python 3.6 because the _blocking flag is new and didn't release on 3.6 version. I also fixed a minor bug in the implementation.

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

simon-mo and others added 4 commits November 16, 2022 15:23
Signed-off-by: simon-mo <simon.mo@hey.com>
Signed-off-by: simon-mo <simon.mo@hey.com>
@simon-mo simon-mo marked this pull request as ready for review November 17, 2022 19:37
@architkulkarni
Copy link
Copy Markdown
Contributor

@simon-mo I didn't catch the bug in the previous implementation, what was it?

@simon-mo
Copy link
Copy Markdown
Contributor Author

acquire doesn't return boolean, it raises TimeoutError when it is not acquired

@simon-mo simon-mo merged commit b7072ea into ray-project:master Nov 18, 2022
WeichenXu123 pushed a commit to WeichenXu123/ray that referenced this pull request Dec 19, 2022
Signed-off-by: Weichen Xu <weichen.xu@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants