-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[Core] Retryable grpc client #47981
Merged
Merged
[Core] Retryable grpc client #47981
Changes from 36 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
b47dac0
Retryable grpc client
jjyao 3ead394
up
jjyao e7fc94b
up
jjyao e944542
up
jjyao b072f62
up
jjyao 4bf5f52
up
jjyao 8ea5340
Merge branch 'master' of github.com:ray-project/ray into jjyao/rettttry
jjyao bf8577e
up
jjyao 2befc08
up
jjyao 78a399b
up
jjyao ed8051b
comments
jjyao d94e08e
lock
jjyao 3bf9089
Merge branch 'master' of github.com:ray-project/ray into jjyao/rettttry
jjyao 2d9af67
Merge branch 'master' of github.com:ray-project/ray into jjyao/rettttry
jjyao 16326f8
up
jjyao 3e60b53
fix
jjyao 0d7e1d5
up
jjyao 0635cd6
Merge branch 'master' of github.com:ray-project/ray into jjyao/rettttry
jjyao c3a2c04
up
jjyao 2d3f419
up
jjyao e910fa0
up
jjyao 72f2541
up
jjyao dc1fa24
fix
jjyao 6102de7
fix
jjyao 5fac510
up
jjyao 4ddf163
up
jjyao cabae18
no mutex
jjyao 536fe8c
up
jjyao c4ebc2b
up
jjyao c9c077b
Merge branch 'master' of github.com:ray-project/ray into jjyao/rettttry
jjyao 381a626
up
jjyao f90f6a5
up
jjyao 4464a1d
up
jjyao fd90c4c
up
jjyao cda3b67
Merge branch 'master' of github.com:ray-project/ray into jjyao/rettttry
jjyao b7e4181
Merge branch 'master' of github.com:ray-project/ray into jjyao/rettttry
jjyao e5fc8cd
up
jjyao 4eececd
up
jjyao 1ed3421
up
jjyao 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
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
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 |
---|---|---|
|
@@ -327,6 +327,10 @@ struct GcsServerMocker { | |
drain_raylet_callbacks.push_back(callback); | ||
}; | ||
|
||
void IsLocalWorkerDead( | ||
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. This class should be named as 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. This PR is already big. Let's do these cleanups in a separate PR. |
||
const WorkerID &worker_id, | ||
const rpc::ClientCallback<rpc::IsLocalWorkerDeadReply> &callback) override{}; | ||
|
||
void NotifyGCSRestart( | ||
const rpc::ClientCallback<rpc::NotifyGCSRestartReply> &callback) override{}; | ||
|
||
|
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
If I were you, I would place the disconnection logic into
gcs_client_
's deleter.The benefit of which is: we keep invariant when gcs client is valid, connection is guaranteed to be valid.
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.
I'll leave it for a separate PR.
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.
If you plan to do that, maybe leave a TODO in case we forget?
Feel free to leave it under my name.