I am getting this error when running tests in node.
MongoError: cannot perform operation: a background operation is currently running for ...
I need a way to stop all running background operations via the command line.
You need db.killOp(). This will kill a list of current operations which you can obtain via db.currentOp() which returns a list of all the current operations.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With