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
Added support for unavailable replica servers #1159
Conversation
does it pass the test suite ? make sure mongod is in your path and run
|
No, test fails. Console output below:
|
what server version are you running against ? it's been tested against 2.4.X and 2.6.X |
db version v2.4.9 |
Updated to 2.6.
I'll try to resolve this |
I'm checking it aswell right now. On Thu, Apr 10, 2014 at 6:09 PM, Dimka notifications@github.com wrote:
|
tests should be fixed now in master |
Can you explain points to select server with 'undefined' ping? Is it bug or feature? I cannot understand default behavior like this (blocked 27019 port):
|
yeah this patch won't work because there will be an interval between the actual connect and the first ping happening and thus all instances are 'undefined'. the code filters out all of the servers thus failing all operations until there is a ping. |
this commit filters out any non-connected servers 85a92fc |
So, in _failTimer, instead of
I must mark server as 'non-connected'? I think it is overflow in 'ping strategy' scope. The point is to quickly detect fallen replica server, prevent send new queries to it, and continue quering when connection restores. |
Maybe, better way is to trigger 'timeout' event faster? Then |
I fixed code, and successfully test it, but when I retried test, it fails.
|
Moved to clean #1161 |
3 fixes for a ping strategy.