40 — ConflictingUpdateOperators

configurationconcurrency

Another conflicting operation is already in progress

What is happening?

ConflictingOperationInProgress occurs when an operation cannot proceed because another operation that conflicts with it is already running. This is common with DDL operations (creating/dropping indexes, renaming collections) that cannot run concurrently.

Common causes

  1. Attempting to create an index while another index build is in progress
  2. Running concurrent collection modifications (rename, drop)
  3. Initial sync or resharding already in progress on the replica set
  4. Concurrent compact operations on the same collection

Source code references

ErrorCodes::ConflictingUpdateOperators found in 4 locations in the MongoDB server source.

Diagnostic Steps