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

Wait replication sync using SYNC REPLICA #97

Merged
merged 6 commits into from
Feb 1, 2024

Conversation

kirillgarbar
Copy link
Contributor

Not sure what default timeout value for SYNC REPLICA should be.
Command throws on SYNC REPLICA timeout. I thought we can just retry sync until total_timeout is reached, but I think current implementation allows us to know that something is not as expected much earlier.
Replication lag check is not removed in case something really weird happens.
Also I just print() on timeout because throwing exceptions result in some ugly traceback and useless message being printed, maybe there is a better way to do it.

@aalexfvk
Copy link
Contributor

LGTM, it would be great if someone else take a look

@aalexfvk aalexfvk requested a review from Alex-Burmak February 1, 2024 13:51
@Alex-Burmak Alex-Burmak merged commit f6c4f82 into yandex:main Feb 1, 2024
13 checks 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.

3 participants