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] Fix replica leak in anonymous namespaces #24311

Merged
merged 2 commits into from
Apr 29, 2022

Conversation

shrekris-anyscale
Copy link
Contributor

Why are these changes needed?

When Ray starts in an anonymous namespace, replicas don't shut down correctly, causing a replica leak. This change adds fixes introduced in #23896 to Ray 1.12.1, and it adds a new unit test to check replica updates in anonymous namespaces.

Related issue number

Closes #24260.

Checks

  • 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
      • Unit tests added to test_standalone2.py.

shrekris-anyscale added a commit to shrekris-anyscale/ray that referenced this pull request Apr 28, 2022
edoakes pushed a commit that referenced this pull request Apr 29, 2022
#24311 added the `test_update_num_replicas_anonymous_namespace` unit test to check for replica leaks in anonymous namespaces. This change adds this test to the master branch.
@edoakes
Copy link
Contributor

edoakes commented Apr 29, 2022

Lint failing on master

@edoakes edoakes merged commit 1b103b0 into ray-project:releases/1.12.1 Apr 29, 2022
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