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

Fix vreplication panic #5753

Merged
merged 1 commit into from
Jan 27, 2020
Merged

Fix vreplication panic #5753

merged 1 commit into from
Jan 27, 2020

Conversation

sougou
Copy link
Contributor

@sougou sougou commented Jan 23, 2020

Fixes #5752

DBClient was setting the connection to nil after close, which was
causing vreplication to panic because it defers a Rollback on all
connections. The safer thing is to close the connection, but not
set it to nil.

There's no test for DBClient, but I've manually verified that this
won't panic any more.

Signed-off-by: Sugu Sougoumarane [email protected]

@sougou sougou requested a review from deepthi January 23, 2020 20:06
Fixes vitessio#5752

DBClient was setting the connection to nil after close, which was
causing vreplication to panic because it defers a Rollback on all
connections. The safer thing is to close the connection, but not
set it to nil.

There's no test for DBClient, but I've manually verified that this
won't panic any more.

Signed-off-by: Sugu Sougoumarane <[email protected]>
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

@deepthi deepthi merged commit 123dab2 into vitessio:master Jan 27, 2020
@sougou sougou deleted the ss-vrepl-panic branch February 8, 2020 22:44
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.

VReplication panic on broken connection to external MySQL
2 participants