The createIndexes command checks the requested index specs against the existing indexes in the catalog under an intent lock. We should ensure that we have test coverage over this code path (either by extending an existing test or adding a new test script).
The JS test create_new_indexes_with_conflict.js was originally introduced in SERVER-44405 to cover this test case, but we discovered this was not the case in SERVER-49415.
- is related to
-
SERVER-49415 create_new_indexes_with_conflict.js hangs intermittently due to unreliable log line checking
- Closed
-
SERVER-44405 Use MODE_IX lock for implicit collection creation with createIndexes
- Closed