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

Refactor BinaryLogClient into an abstract base class to allow for more flexible use #16

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

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