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

MySQL 5.6 support #20

Merged
merged 15 commits into from
Jul 18, 2016
Merged

MySQL 5.6 support #20

merged 15 commits into from
Jul 18, 2016

Conversation

jage
Copy link
Contributor

@jage jage commented Jul 6, 2016

https://docs.travis-ci.com/user/database-setup/#MySQL-5.6

EventType::DELETE_ROWS,
EventType::EXT_DELETE_ROWS,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Might be possible to configure MySQL to use v1 ROWS_EVENT but it feels better to support both v1 and v2.

Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we have specs for both then? You added to the array here, but replaced them in the specs (e.g. WRITE_ROWS -> EXT_WRITE_ROWS)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Shouldn't we have specs for both then? You added to the array here, but replaced them in the specs (e.g. WRITE_ROWS -> EXT_WRITE_ROWS)

Not sure it's worth it, since we need to stop and reconfigure MySQL to have multiple specs.

I'll probably refactor this and rely on https://github.com/shyiko/mysql-binlog-connector-java/blob/05bc0952c5de64fc836fcb9ca36f4b4570d21a72/src/main/java/com/github/shyiko/mysql/binlog/event/EventType.java#L191-L207 and add our own types that don't vary depending on the MySQL config and/or version.

But first step is just to get everything working with 5.6s default config.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll probably refactor this and rely on https://github.com/shyiko/mysql-binlog-connector-java/blob/05bc0952c5de64fc836fcb9ca36f4b4570d21a72/src/main/java/com/github/shyiko/mysql/binlog/event/EventType.java#L191-L207 and add our own types that don't vary depending on the MySQL config and/or version.

There are some issues with JRuby and Java type, some of the issues are fixed by using EventType.java_send(:isWrite, [EventType], type). Might be easier to keep the constants, but ensure we send the same type-strings as before (otherwise Bruce will break).

@@ -26,7 +26,7 @@
subject.on_event(table_event)
subject.on_event(row_event)

expect(actual_type).to eq(row_event_type)
expect(actual_type).to eq("WRITE_ROWS")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will try to make this more generic, or more specific that it's a write row event (now it's "hidden" in the spec context)

@jage
Copy link
Contributor Author

jage commented Jul 18, 2016

Done.

@dentarg
Copy link
Contributor

dentarg commented Jul 18, 2016

LGTM 👍

@jage jage changed the title Use MySQL 5.6 on Travis CI MySQL 5.6 support Jul 18, 2016
@jage jage merged commit 2585815 into master Jul 18, 2016
@jage jage deleted the mysql-5.6 branch July 18, 2016 09:39
jage added a commit that referenced this pull request Jul 18, 2016
MySQL 5.6 support fixed in #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