How to stop a currently running index creation operation gracefully

since --noIndexBuildRetry can not be used in conjunction with --replSet since 4.0 and is removed since 4.4.

according to manual, we can use ‘db.killOp()’ to stop it on primary, but we can’t stop a replicated index build on secondary? even restart doesn’t work.

how to stop a currently running index creation operation gracefully?

Welcome to the MongoDB Community Forums @111146!

What version of MongoDB server are you currently running?

Regards,
Stennie

I believe this is a common problem for cluster with fcv below 4.2