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

skipping replication.GenericEvent #80

Merged
merged 2 commits into from
Jan 9, 2019
Merged

skipping replication.GenericEvent #80

merged 2 commits into from
Jan 9, 2019

Conversation

tclh123
Copy link
Contributor

@tclh123 tclh123 commented Nov 16, 2018

The go-mysql doesn't parse those events, so we can't handle this event.
This should fix the binlog_streamer panic #79.

go-mysql don't parse those events, so we can't handle this event.
This should fix the binlog_streamer panic Shopify#79.
Copy link
Contributor

@shuhaowu shuhaowu left a comment

Choose a reason for hiding this comment

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

Do you know what events are being put into GenericEvent? I looked at the go-mysql code and it's just a default branch in a switch.

Given that we've successfully ran Ghostferry for sometime, this PR is likely OK. Documenting the unparsed events in here or in the comments (with a link to this thread) maybe helpful.

@@ -165,6 +165,10 @@ func (s *BinlogStreamer) Run() {
// This event can tell us about table structure change which means
// the cached schemas of the tables would be invalidated.
// TODO: investigate using this to allow for migrations to occur.
case *replication.GenericEvent:
// go-mysql don't parse this event, it use GenericEvent instead,
Copy link
Contributor

Choose a reason for hiding this comment

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

"go-mysql don't parse all events and unparsed events are denoted with empty GenericEvent structs"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@shuhaowu shuhaowu merged commit 3037220 into Shopify:master Jan 9, 2019
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