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

Handle MasterSlaveReplication connections #479

Conversation

liam-wiltshire
Copy link

At the moment, DD causes errors in some situations when using predis/predis, when predis is using master-slave replication. This was discussed in #315

There may be a couple of points of discussion around this:

  • What should happen when Client::getConnection() returns a MasterSlaveReplication connection, but the connection hasn't been used yet, so MasterSlaveReplication::connection is empty. In our use case (and thus in this PR) we ask it to return the master, but this might not be preferred behaviour?

  • I looked at writing a test to cover this, but I was struggling to get my head around how your tests work, and I couldn't actually create a breaking test in the first place to fix! If someone can point me in the right direction @SammyK @pawelchcki the I'll take another look at getting a test to play nice!!

@liam-wiltshire
Copy link
Author

Yeah, so I might have forgot PHP 5 - will replace the ?? :)

@krakjoe
Copy link
Contributor

krakjoe commented Dec 30, 2021

I'm closing this as it no longer looks applicable, and would appear to be stale.

If I'm wrong to do that, please open a new PR, and accept my apologies in advance.

@krakjoe krakjoe closed this Dec 30, 2021
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.

2 participants