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

Add mariadb event types #280

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jinfwhuang
Copy link


WIP
Note:

  1. Still need to add MariaDB vagrant box.
  2. This PR builds on a commit that is submitted at Prevent running the tests in BinaryLogClientIntegrationTest twice #279

The main change in this PR is to add support to the library to recognize all of the MariaDB event types. The would allow the library to be used in processing MariaDB binlogs. This PR does not change any of the existing deserialization behaviors. The PR does not add additional deserializations for those new MariaDB events.

The key changes are in EventType.java.

@@ -307,6 +307,10 @@ public EventDataDeserializer getEventDataDeserializer(EventType eventType) {
return eventDataDeserializer != null ? eventDataDeserializer : defaultEventDataDeserializer;
}

public Map<Long, TableMapEventData> getTableMapEventByTableId() {
return tableMapEventByTableId;
Copy link
Author

Choose a reason for hiding this comment

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

This allows user to get the tableMapEventByTableId back from the default EventDeserializer. Whenever a library user wants to selectively override any of the eventDeserializers, the library user would probably need to access this map.

@jinfwhuang jinfwhuang force-pushed the add-mariadb-event-types branch 2 times, most recently from a06fc37 to 66caf6d Compare June 12, 2019 02:02
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.

1 participant