-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
mongodb: 3.3.2 driver unable to connect with replica set when one node is down. #6261
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
Comments
I'm also facing same issue |
The test have been failing, it should be an easy fix. I can look into it again shortly |
Sorry. I missed that one. Let me know if you need any help. |
@yog27ray Can you try to see if the latest mongo driver update fixed your issue? I should have a replica set somewhere to test with. @davimacedo I’ll need help since I’ve been closing them. I haven’t had luck so far. At least we know where the issue is coming from. |
@dplewis latest mongo driver has fixed my issue. Below are the steps I used to confirm that latest mongo driver is fixing the issue.
now even if I stop any replica member, parse-server is able to switch connection to other replica member and even i restart parse-server while keeping one member down it is able to communicate with other replica member. We already configured replica set to verify the same if you want we can share the same with you. |
I opened a PR #6263 for this. All the tests passes locally. Hopefully someone can fix the travis issues. Its up for grabs. |
MongoDB driver 3.3.2 is unable to connect to mongodb replicaSet if one of member machine is down.
Note: Same issue is described in https://jira.mongodb.org/browse/NODE-2231
Steps to reproduce
Note: Even we restart parse-server when one of the 3 member replicaSet mongodb is down and in mongo connection URI we have provided hostname for all the 3 member. It is not able to connect mongodb.
Expected Results
When one mongoDB replicaSet member goes down. It should automatically connect to new primary mongodb server.
Actual Outcome
Error: connect ECONNREFUSED x.x.x.x:port
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1128:14) {
name: 'MongoNetworkError',
errorLabels: [ 'TransientTransactionError' ],
[Symbol(mongoErrorContextSymbol)]: {}
}
Environment Setup
Server
Database
The text was updated successfully, but these errors were encountered: