-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Fix release test -- client remote put #15325
Merged
Merged
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
0448fb6
fix-test
richardliaw 779a8f8
fix
richardliaw 223f2e3
Update python/ray/util/client/server/dataservicer.py
richardliaw a739d9c
Update python/ray/util/client/server/dataservicer.py
richardliaw 0a2b878
Update python/ray/_private/ray_client_microbenchmark.py
richardliaw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,7 +82,6 @@ def Datapath(self, request_iterator, context): | |
finally: | ||
logger.debug(f"Lost data connection from client {client_id}") | ||
self.basic_service.release_all(client_id) | ||
richardliaw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
with self.clients_lock: | ||
if accepted_connection: | ||
# Could fail before client accounting happens | ||
|
@@ -91,8 +90,8 @@ def Datapath(self, request_iterator, context): | |
|
||
# It's important to keep the Ray shutdown | ||
# within this locked context or else Ray could hang. | ||
with disable_client_hook(): | ||
if self.num_clients == 0: | ||
if self.num_clients == 0: | ||
with disable_client_hook(): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we change swap this?
richardliaw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
logger.debug("Shutting down ray.") | ||
ray.shutdown() | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
should
import ray
just work? I feel disable_client_hook will take care of everything.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.
Well, if you don't have the import in here and only the disable_client_hook, the behavior is actually unexpected (and fails).
So it's important to have some form of import in here, but I felt that
real_ray
was more readable and would prevent scoping problemsThere 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.
Ah, you misunderstood me.
I mean we don't necessarily rename it to
real_ray
since it doesn't quite make sense here.If you don't call with disable_client_hook, it's actually not real_ray, right?
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.
OK i tried a small fix here!