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

Disable binlogging when running with --test-on-replica? #146

Open
Roguelazer opened this issue Aug 9, 2016 · 2 comments
Open

Disable binlogging when running with --test-on-replica? #146

Roguelazer opened this issue Aug 9, 2016 · 2 comments
Labels

Comments

@Roguelazer
Copy link
Contributor

What would you think about running SET SESSION sql_log_bin=0 before applying changes when running in --test-on-replica mode? Right now, after testing on a replica, we need to wipe it and restore it from scratch (to prevent any invalid GTIDs from creeping in the event of a later promotion of that host to master). This is kind of irritating, and if we just turn off binlogging for that session, we wouldn't necessarily have to reset the box afterwards.

@MarkLeith
Copy link

I think this is a bug anyway, all "admin statements" should have binary logging disabled when GTID is enabled on a replica...

@shlomi-noach
Copy link
Contributor

I'm good to set a --sql-log-bin=false command line option.
One problem I see right now is the writes to _tbl_ghc -- the changelog table. In particular, the indication that the sync is complete (during cut-over phase) is done by updating a row on the changelog table, then picking that statement in the binary log. That's what promises us our async operation is truly complete and all other events have been processed.

And so there's at least one single update that needs to be made on the replica, which kinda ruins everything, correct?

For the specific use case of --test-on-replica we can work around this ; however such will not be the case for --migrate-on-replica, I suspect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants