So I’ve been using mongoDB in my meteor app for many years now. I also quite frequently use the
initializeUnorderedBulkOp() method to create performant bulk operations.
For some weeks now I am quite frequently running into very weird problems: Under quite heavy load (e.g. while multiple long, more complicated queries are running in parallel) some completely normal queries suddenly result in an JS error thrown from the nodejs mongo driver - the error is the typical
Maximum call stack exceeded error - unfortunately the exact logs are gone by now.
I can still be remember that the error occurred in some method named
fixed_queue for something.
Anyways this obviously crashes my whole node server so I desperately need a fix for that!
I am using the mongodb npm package in version
Can someone help?
Thanks, best, Patrick