-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bunch of fixes around replication positioning.
1. rename setInitialPosition() -> setPosition 2. only store our position into mysql if the event has the "commit" flag. This will prevent us from ending up stopped in the middle of a transaction, which in some cases caused us to miss a table-map event, and thusly miss rows. 3. make sure the replicator thread is running, even inside getTransactionEvents() -- the replicator thread was getting disconnected from out from under us, leading to a process that would never make progress. 4. always setup the replicator's position after processing an event. ensure that if we need to restart the thread it'll always be in the right place. I think I really need to refactor the MaxwellParser class. It's huge.
- Loading branch information
Ben Osheroff
committed
Sep 29, 2015
1 parent
a5a40f7
commit 569ce24
Showing
7 changed files
with
45 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters