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

vreplication: bug fixes #5012

Merged
merged 2 commits into from
Jul 24, 2019
Merged

vreplication: bug fixes #5012

merged 2 commits into from
Jul 24, 2019

Conversation

sougou
Copy link
Contributor

@sougou sougou commented Jul 21, 2019

This PR fixes two bugs found during production testing:

vreplication: handle copy for wildcards

The catchup code path was ignoring lastpk for wildcard expressions in the filter. This is now fixed.

vcopier: use ticker instead of timer

The vcopier was using a timer instead of a ticker in its wait loop which caused it to wait forever even if the replication had caught up.

The change includes a new test that tests the full copy cycle and ensures that multiple iterations succeed.

A similar incorrect usage was found in logutil. That's also been fixed.

The catchup code path was ignoring lastpk for wildcard
expressions in the filter. This is now fixed.

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
The vcopier was using a timer instead of a ticker in its wait loop
which caused it to wait forever even if the replication had caught up.

The change includes a new test that tests the full copy cycle and
ensures that multiple iterations succeed.

A similar incorrect usage was found in logutil. That's also been
fixed.

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
@sougou sougou requested a review from deepthi July 21, 2019 20:50
@sougou
Copy link
Contributor Author

sougou commented Jul 21, 2019

@teejae

Copy link
Member

@deepthi deepthi left a comment

Choose a reason for hiding this comment

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

LGTM

@sougou sougou merged commit 771c175 into vitessio:master Jul 24, 2019
@sougou sougou deleted the ss-vrepl-bugs branch August 4, 2019 03:20
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