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

[serve] Remove aiorwlock dependency #42159

Merged
merged 10 commits into from
Jan 10, 2024
Merged

Conversation

edoakes
Copy link
Contributor

@edoakes edoakes commented Jan 3, 2024

Why are these changes needed?

This was added long ago to avoid race conditions between reconfigure and user method calls. However, sometime since then the reader lock acquisition seems to have been accidentally removed. We have not seen any issues from this so my preference is to just altogether remove the complexity & dependency.

Users can implement their own coordination if this is a problem for them by adding concurrency control to their reconfigure method.

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 added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • 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 :(

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
@edoakes edoakes changed the title [WIP][serve] Remove aiorwlock dependency [serve] Remove aiorwlock dependency Jan 3, 2024
@edoakes edoakes marked this pull request as ready for review January 3, 2024 17:47
@edoakes edoakes requested a review from a team January 3, 2024 17:47
Copy link
Contributor

@GeneDer GeneDer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and tests are passing without it. Can do a follow up on doc changes after someone requires this feature.

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
@edoakes edoakes merged commit 18e8e22 into ray-project:master Jan 10, 2024
9 checks passed
vickytsang pushed a commit to ROCm/ray that referenced this pull request Jan 12, 2024
This was added long ago to avoid race conditions between reconfigure and user method calls. However, sometime since then the reader lock acquisition seems to have been accidentally removed. We have not seen any issues from this so my preference is to just altogether remove the complexity & dependency.

Users can implement their own coordination if this is a problem for them by adding concurrency control to their reconfigure method.

---------

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
@edoakes edoakes self-assigned this Jan 16, 2024
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.

4 participants