-
-
Notifications
You must be signed in to change notification settings - Fork 388
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
Migrations fail when slave replication is running significantly behind master #336
Labels
Comments
edhgoose
changed the title
Migrations fail when slave is running behind a master
Migrations fail when slave replication is running significantly behind master
Aug 11, 2015
Are you using the MasterSlaveConnection of DBAL ? |
Yes, I believe so. We're using it with Symfony2 and our configuration looks like this:
and in
|
OK, then I have an idea to fix it. Expect it to be submitted in the next few days |
Magnificent, thank you very much. |
chrisguitarguy
added a commit
to chrisguitarguy/migrations
that referenced
this issue
Jul 6, 2016
And account for uses of `MasterSlaveConnection`. If there is a `MasterSlaveConnection` in use, the migrations system should always talk to master just incase replication is behind the next migration execution. Should (hopefully) close doctrine#336
mikeSimonson
pushed a commit
that referenced
this issue
Jul 7, 2016
And account for uses of `MasterSlaveConnection`. If there is a `MasterSlaveConnection` in use, the migrations system should always talk to master just incase replication is behind the next migration execution. Should (hopefully) close #336
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
We have a problem where our build script will fail if run after another longer running migration.
If our build script executes and starts running a long migration it'll randomly (it appears) pick one of our three database instances, where 2 are slaves and one is master. The following can happen:
I'd expect, or assume there would be an option, to force the migrations to operate against the master (or a specific) database.
I'm using MySQL in Amazon's RDS if that helps.
Thanks!
Ed
The text was updated successfully, but these errors were encountered: