-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Add a callback for gcs table lookup failures. #1702
Conversation
Test PASSed. |
Test PASSed. |
Can be merged when the tests pass (the last one is failing at the moment and needs to be fixed). |
Test PASSed. |
28703fd
to
07f641c
Compare
Test PASSed. |
src/ray/gcs/redis_context.h
Outdated
@@ -21,7 +21,7 @@ namespace gcs { | |||
|
|||
class RedisCallbackManager { | |||
public: | |||
using RedisCallback = std::function<void(const std::string &)>; | |||
using RedisCallback = std::function<void(const std::string &, bool is_nil)>; |
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.
Does it make sense to add this parameter for all RedisCallbacks
? I'm a little wary of adding this when it is only used by one of the table operations.
An alternative plan would be to call the failure callback if the response is empty in the Lookup
call. Then we can keep the changes completely local to the Lookup
operation. The only drawback I see here is that if we won't be able to support an entry that has an empty string as the value, but I think this is probably okay.
Test PASSed. |
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.
Looks good!
Test PASSed. |
Test PASSed. |
Tests on private travis passed. |
Adds a callback for GCS table lookup failures.