Skip to content

vreplication: bug: make row streaming more robust#5114

Merged
sougou merged 1 commit intovitessio:masterfrom
planetscale:ss-vrepl-fix-copy
Aug 21, 2019
Merged

vreplication: bug: make row streaming more robust#5114
sougou merged 1 commit intovitessio:masterfrom
planetscale:ss-vrepl-fix-copy

Conversation

@sougou
Copy link
Copy Markdown
Contributor

@sougou sougou commented Aug 19, 2019

During production testing, we found that there are possibilities
that a table lock never gets released when row streaming is requested.

We most likely suspect that a grpc send hangs, which keeps the table
locked, when eventually causes replication to stall and subsequent
row streaming requests to hang.

This change refactors the code to make sure that we unlock a table
as soon as streaming has started. The previous code unlocked the table
only after sending the field info.

Signed-off-by: Sugu Sougoumarane ssougou@gmail.com

During production testing, we found that there are possibilities
that a table lock never gets released when row streaming is requested.

We most likely suspect that a grpc send hangs, which keeps the table
locked, when eventually causes replication to stall and subsequent
row streaming requests to hang.

This change refactors the code to make sure that we unlock a table
as soon as streaming has started. The previous code unlocked the table
only after sending the field info.

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
@sougou sougou requested review from acharis and deepthi August 19, 2019 19:53
Copy link
Copy Markdown
Collaborator

@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.
Q: has this fix already been tried out on a production scale resharding?

@sougou
Copy link
Copy Markdown
Contributor Author

sougou commented Aug 21, 2019

The testing is still being done. But this is overall an improvement, even if it didn't address the specific issue.

@sougou sougou merged commit a3b5da7 into vitessio:master Aug 21, 2019
@sougou sougou deleted the ss-vrepl-fix-copy branch August 24, 2019 19:23
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