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

[5.4] Force reconnect #15867

Closed
wants to merge 1 commit into from
Closed

[5.4] Force reconnect #15867

wants to merge 1 commit into from

Conversation

halaei
Copy link
Contributor

@halaei halaei commented Oct 12, 2016

To fix #15865

@GrahamCampbell GrahamCampbell changed the title force reconnect [5.4] force reconnect Oct 12, 2016
@GrahamCampbell GrahamCampbell changed the title [5.4] force reconnect [5.4] Force reconnect Oct 12, 2016
@themsaid
Copy link
Member

I'm not sure I understand the test you wrote, don't think it's testing anything!

Also how would you use this new parameter to force reconnecting?

@halaei
Copy link
Contributor Author

halaei commented Oct 12, 2016

Yes the test is dummy: it checks that exception is not raised as opposed to testTransactionsDecrementedOnTransactionException()

@halaei
Copy link
Contributor Author

halaei commented Oct 12, 2016

I have my example of how the new parameter is used here: #15865 (comment)

@taylorotwell
Copy link
Member

This feels really strange and like we're avoiding some other problem. Why would we want to have a "force" parameter on a disconnect method. We already told it to "disconnect". What does "force" even mean semantically here? We already told it to do something. Now we're telling it to "no, seriously, disconnect" in even stronger terms? I don't know. The whole concept feels weird.

@halaei
Copy link
Contributor Author

halaei commented Oct 13, 2016 via email

@halaei
Copy link
Contributor Author

halaei commented Oct 13, 2016 via email

@taylorotwell
Copy link
Member

I would be curious to know why we are checking if we are already in a transaction and throwing that exception in the first place.

@halaei
Copy link
Contributor Author

halaei commented Oct 13, 2016 via email

@halaei halaei closed this Oct 15, 2016
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