Skip to content

Conversation

zmira
Copy link
Contributor

@zmira zmira commented Nov 3, 2020

The current logic only throws a timeout exception if the replica set is not ready after singleNodeReplSetWaitTimeout seconds.

A check for the cluster's readiness for transactions was added but nothing is done when the timeout expires. This pull request handles that.

Also, since it looks like this new check takes longer than the default timeout of 5 seconds, I increased the default timeout from 5 to 10 seconds.

zmira added 3 commits November 3, 2020 17:10
…ow right away, don't wait to check if cluster is ready for transactions
…still not ready for transactions, throw exception
…ow also waiting for a server to be connected and data-bearing
@JohannesHoppe
Copy link
Member

LGTM! 👍

@JohannesHoppe JohannesHoppe merged commit 493bb01 into Mongo2Go:master Dec 11, 2020
@JohannesHoppe
Copy link
Member

@zmira Thank you very much for your continued support, i will publish a new version in some minutes. 👍

Unfortunately this test is still broken on my Mac (but runs flawlessly on Windows).
Your help would be highly encouraged, if you ever have time to look it into this. (And if you have access to a Mac, of course 😆)

@zmira
Copy link
Contributor Author

zmira commented Dec 15, 2020

Sorry. Unfortunately, no access to a Mac.

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