-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
-
Catalog and Routing
The reply of the createIndexes command is not idempotent because it returns information regarding the status of the cluster previous of the execution of the command. In particular:
- createIndexes.createdCollectionAutomatically
- If true, then the collection didn't exist and was created in the process of creating the index.
- createIndexes.note
- This note is returned if an existing index or indexes already exist. This indicates that the index was not created or changed.
In order to make the command truly idempotent, we should stop adding this information in the reply of the command.