Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,13 @@ jobs:
type: string
environment:
MYSQL_VERSION: "<< parameters.mysql >>"
JAVA_TOOL_OPTIONS: "-Xmx250m"
JAVA_TOOL_OPTIONS: "-Xmx250m -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "pom.xml" }}
- run:
command: echo "testing under mysql $MYSQL_VERSION"
- run:
name: testit
name: "testing under version << parameters.mysql >>"
command: mvn verify -Dgpg.skip
- store_artifacts:
path: test.log
Expand All @@ -56,4 +54,8 @@ workflows:
name: "test-8.0"
mysql: "8.0"
requires: [ "build" ]
- test:
name: "test-mariadb"
mysql: "mariadb"
requires: [ "build" ]

10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@ kick off from a specific filename or position, use `client.setBinlogFilename(fil
> `client.connect()` is blocking (meaning that client will listen for events in the current thread).
`client.connect(timeout)`, on the other hand, spawns a separate thread.


#### MariaDB

The stock BinaryLogClient works out of the box with MariaDB but there's two differences;

One, MariaDB's GTIDs are different. They're still strings but parse differently.
Two, Maria can send the ANNOTATE_ROWS events which allows you to recover the SQL used to generate rows in row-based replication.

See https://mariadb.com/kb/en/annotate_rows_log_event/ and `client.setUseSendAnnotateRowsEvent(true)`

#### Controlling event deserialization

> You might need it for several reasons:
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.zendesk</groupId>
<artifactId>mysql-binlog-connector-java</artifactId>
<version>0.26.1</version>
<version>0.27.0-PRE3</version>

<name>mysql-binlog-connector-java</name>
<description>MySQL Binary Log connector</description>
Expand Down Expand Up @@ -165,7 +165,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<version>3.4.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand Down
Loading