-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Another Reconnect Issue #3481
Comments
This is a pretty deep bug in the mongodb driver (about 2 steps above writing to the socket), and really tricky to repro :( However, looks like we have the general idea of what's wrong in the PR above. Hopefully we'll have a fix soon, thanks for your patience :) |
Fixed in 6c98eb4 |
We're are affected this issue too, maybe.. For the record, this is the changes introduced by this update: mongodb/node-mongodb-native@V2.0.48...V2.0.49 mongodb-js/mongodb-core@V1.2.21...V1.2.25 |
So this issue was fixed in 4.2.7. Have you upgraded? |
I have now upgraded and tested and it works nicely... THANKS!!! |
This issue is similar to but varies from that of #3370.
Im auto-reconnecting to mongodb thru mongoose, but when taking down (killing the process) and bringing mongodb back up again, often (about every fourth time) I don't get an immediate response from mongoose (or mongodb). Instead I only get the response upon a next kill/restart of mongodb.
I have constructed sample code to demonstrate my issue. This code will forever add more records to a mongodb. Upon err to save(), e.g. ECONNRESET, it retries forever until success. It also shows progress and throws an Error if any callback from save() to mongodb was skipped.
These are the steps to reproduce.
I am running mongodb 3.0 and mongoose ^4.1.8.
What may I be doing wrong? What may mongoose or mongodb not be telling me clearly?
My sample code looks like this:
The text was updated successfully, but these errors were encountered: