IndexBuildsCoordinator error when trying to drop db #587
Heinan-Phau
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all,
I am using mongo image 4.4.18.
when I run my UTs (I use mocha) in the clean step of my tests I use
dropDatabase
on each of my connections.this results in this failure
MongoServerError: cannot perform operation: a background operation is currently running for database dbName
after some searching, it seems that the reason is that, at this time, mongo has this op
IndexBuildsCoordinator
which, to my understanding, means that it tries to index some collection while I try to drop the DB, and it causes the error.however, from mongo 4.4 docs, I see this:
so as I understand, my case should not happen in image 4.4.18 since it was fixed from version 4.2.
can anyone help to clarify the issue?
Beta Was this translation helpful? Give feedback.
All reactions