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

ServerJoinFailed callback #470

Merged
merged 2 commits into from
Sep 18, 2023
Merged

ServerJoinFailed callback #470

merged 2 commits into from
Sep 18, 2023

Conversation

myrrc
Copy link
Contributor

@myrrc myrrc commented Sep 6, 2023

If we add_srv, what we can check is that a command was accepted. However, the only way to check whether it was applied is to query replica's config. In case of server not being added (e.g. non-existent host) we will never find this server in a config.
This PR proposes a way to handle such corner cases without relying on some arbitrary timeouts

Note we don't need a ServerLeaveFailed callback as a server that fails to be removed gracefully is still removed.

Copy link
Contributor

@greensky00 greensky00 left a comment

Choose a reason for hiding this comment

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

Thanks, can you please take a look into my comment?

src/handle_join_leave.cxx Show resolved Hide resolved
Copy link
Contributor

@greensky00 greensky00 left a comment

Choose a reason for hiding this comment

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

LGTM

@greensky00 greensky00 merged commit c6ccc20 into eBay:master Sep 18, 2023
1 check 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.

2 participants