Skip to content

A bunch of small changes #31

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

Merged
merged 9 commits into from
May 26, 2013

Conversation

liorsion
Copy link
Collaborator

those are all small changes that I didn't bother branch each, hope it's ok:

  1. re-adding gtid related events: for some reason those were removed. If GTID is enabled (mysql 5.6+) those events are fired and exceptions are raised
  2. Added comment about running tests - how to configure your mysql - otherwise the tests will get stuck forever (no events are thrown) and this can be frustrating for a first time user
  3. disable reporting on non implemented events to help testing - our tests are very delicate and depend on specific events beings thrown - in several cases other events are thrown as well - we usually want notimplemented events not to be thrown around

Lior Sion added 8 commits May 2, 2013 10:18
according to this post
http://dev.mysql.com/doc/internals/en/row-based-replication.html#rows-event
events are marked as version 0,1,2 (current) - the code had _V1 and no
version at all - I think it would b easier and morefuture compatible to
use V2 since it seems V3 is unavoidable.
Conflicts:
	pymysqlreplication/row_event.py
	pymysqlreplication/tests/test_basic.py
nullevent is an event that can happen in the steam but we want to skip
it.

added two sample events like that: INTVAR_EVENT and GTID_LOG_EVENT -
those are events that happen when we do GTID enabled replication, but
are of no use (at least not for me at this time) in this packages
aspect. It might be when we support moving to a different master
seamlessly.
Conflicts:
	pymysqlreplication/constants/BINLOG.py
	pymysqlreplication/event.py
	pymysqlreplication/packet.py
@@ -59,6 +59,10 @@ def test_connection_stream_lost_event(self):
self.stream.fetchone()

event = self.stream.fetchone()

while (type(event) == NotImplementedEvent):
Copy link
Contributor

Choose a reason for hiding this comment

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

@julien-duponchelle julien-duponchelle merged commit 1a28e34 into julien-duponchelle:master May 26, 2013
@julien-duponchelle
Copy link
Owner

Merged, and in commit 95e91c7 i made small refactor of the readme about tests.

@liorsion
Copy link
Collaborator Author

thanks :) I should really get me some markdown editor

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