Skip to content

Conversation

sacundim
Copy link

Addresses #15

Roadmap to this patch:

  1. Most of the code in BinaryLogClient has been moved to a AbstractBinaryLogClient superclass.
  2. AbstractBinaryLogClient, instead of using the listener classes, delegates lifecycle and event handling to abstract methods.
  3. BinaryLogClient implements these abstract methods just like it did originally, and its behavior is therefore unchanged.
  4. All unit tests pass.
  5. I ran the integration tests under MySQL 5.6.12, and found that the tests have a couple of timezone/DST bugs. I fixed one of those but not the second one, which I just flagged with a comment.
  6. Checkstyle passes.

1. AbstractBinaryLogClient now no longer depends on EventListener or LifecycleListener.
2. LifecycleListener goes back to accepting BinaryLogClient arguments.

Still haven't run tests.
…ica/Los_Angeles timezone, because of Daylight Saving Time. I've added a comment to that effect.
…or, since now it only serves to make the code longer.
@sacundim
Copy link
Author

The Travis failure for this pull request seems spurious:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project mysql-binlog-connector-java: Failed to deploy artifacts: Could not transfer artifact com.github.shyiko:mysql-binlog-connector-java:jar:0.1.0-20140418.071817-39 from/to sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots): Failed to transfer file: https://oss.sonatype.org/content/repositories/snapshots/com/github/shyiko/mysql-binlog-connector-java/0.1.0-SNAPSHOT/mysql-binlog-connector-java-0.1.0-20140418.071817-39.jar. Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1]

@shyiko
Copy link
Owner

shyiko commented Apr 19, 2014

Yep, Travis CI job deploys mysql-binlog-connector-java build to Sonatype Nexus Snapshots on each push. And only upstream branch gets authenticated. I have submitted an issue #18. In a meantime, please ignore that failure.

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