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

Bug fix: Apply replication settings for newly cloned databases #7833

Merged
merged 2 commits into from
May 8, 2024

Conversation

fulghum
Copy link
Contributor

@fulghum fulghum commented May 8, 2024

Dolt SQL servers using remote-based replication will pull new databases if the @@dolt_replication_remote_url_template system variable is configured, but those new databases weren't getting configured to continue pulling updates from the remote.

This change registers the newly cloned databases as ReadReplicaDatabase instances, so that they will poll their remote and pull new commits. It also adds some additional logging to help debug issues with remote-based replication.

@fulghum fulghum force-pushed the fulghum/replication-debugging branch from aee4016 to f1c1276 Compare May 8, 2024 18:09
@coffeegoddd
Copy link
Contributor

@fulghum DOLT

comparing_percentages
100.000000 to 100.000000
version result total
f1c1276 ok 5937457
version total_tests
f1c1276 5937457
correctness_percentage
100.0

Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

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

LGTM, nice fix!

@fulghum fulghum merged commit 87ffc2b into main May 8, 2024
20 of 21 checks passed
@fulghum fulghum deleted the fulghum/replication-debugging branch May 8, 2024 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants