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

Add a callback for gcs table lookup failures. #1702

Merged
merged 6 commits into from
Mar 16, 2018

Conversation

elibol
Copy link
Contributor

@elibol elibol commented Mar 12, 2018

Adds a callback for GCS table lookup failures.

@elibol elibol requested a review from pcmoritz March 12, 2018 22:12
@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/4276/
Test PASSed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/4302/
Test PASSed.

@pcmoritz
Copy link
Contributor

Can be merged when the tests pass (the last one is failing at the moment and needs to be fixed).

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/4305/
Test PASSed.

@elibol elibol force-pushed the melih/gcs-failure-callback branch from 28703fd to 07f641c Compare March 14, 2018 17:23
@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/4328/
Test PASSed.

@elibol elibol requested a review from stephanie-wang March 14, 2018 20:29
@@ -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)>;
Copy link
Contributor

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.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/4350/
Test PASSed.

Copy link
Contributor

@stephanie-wang stephanie-wang left a comment

Choose a reason for hiding this comment

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

Looks good!

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/4352/
Test PASSed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/4354/
Test PASSed.

@elibol elibol merged commit 3c080f4 into ray-project:master Mar 16, 2018
@elibol
Copy link
Contributor Author

elibol commented Mar 16, 2018

Tests on private travis passed.

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