The createIndexes is expected to check for and reject an empty list of index specs (with an error code of BadValue provided in the indexes field. This handling currently does not extend to the internal collection config.transactions.
There is also a case to be made for returning IllegalOperation when we pass an empty list of specs to createIndexes because this is the behavior established in SERVER-32043 in 4.0.
- is related to
-
SERVER-66565 Create config.transactions partial index in setFCV
- Closed
-
SERVER-32043 Disallow users from creating new indexes in config.transactions
- Closed
- related to
-
SERVER-67991 clean up create_indexes.js
- Closed