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
Cursor session id (none) is not the same as the operation context's - release 5.0.15 broken #6357
Comments
@simllll I'd like to dig into this, can you provide an example script that works for you on 5.0.14 but not on 5.0.15? |
@lineus any idea how I get a backtrace to track this a bit more down? I tried several approaches to extract the issue, but can't find it. But if I start my application the error appears, unfortuantely I cannot see what triggered it. |
@simllll I would start the node process with |
I kind of narrowed it down already, and unlikely my first guess is that this is also related with the connection issue I experienced awhile ago (https://jira.mongodb.org/plugins/servlet/mobile#issue/NODE-1340). I enabled debug log for mongodb-native and that's the output when I do 7 very simple queries in parallel (get entries from a table limited by one key .. something like translate.find({'lang': 'de'})). debug_all.log But I just managed to track it down even further. Final test script which fails:
Output:
Can you read something from the attached logs? Does the script also fail in your setup? Thanks |
As a workaround, try passing the MyModel.find({}, null, { skipSessions: true }); The MongoDB driver implicitly creates sessions if you're connected to MongoDB 3.6 running WT, that option will turn off that behavior. Should help with this issue. |
They fixed the issue already upstream. Unfortunately no new release of mongodb-core yet... So far I go with older mongoose ;) Thanks for the workaround. Simon |
I'll keep this open to track, glad they fixed the issue 👍 I got bit today by implicit sessions as well, got some good feedback for the MongoDB driver team to improve them |
New mongodb-core got released today, as soon as mongoose upgrades to 5.0.18 tthe issues should be done/gone! Thanks |
mongodb upgrade to 3.0.8 to fix #6357
bug with the latest mongoose (guess the underyling problem lies in mongodb-core though).
What is the current behavior?
After upgrading to 5.0.15 no queries are running anymore:
If the current behavior is a bug, please provide the steps to reproduce.
Just upgrade it, didn't change anything else.
What is the expected behavior?
Work the same way like it does with 5.0.14. Downgrading to .14 solves all problems instantely.
Please mention your node.js, mongoose and MongoDB version.
node v9.3.0
mongoose 5.0.15
mongodb 3.6.4
The text was updated successfully, but these errors were encountered: