-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
None
-
Affects Version/s: 2.6.0-rc0
-
Component/s: Index Maintenance
-
ALL
-
-
Execution Team 2019-06-17
The 'numIndexesAfter' field is missing from the createIndexes result document when an index build fails – even if a previous index build succeeded within the same command.
This could be confusing to users who might expect that no indexes were created because there's a 'numIndexesBefore' field but no 'numIndexesAfter' field.
Example result document:
{ "createdCollectionAutomatically" : true, "numIndexesBefore" : 1, "ok" : 0, "errmsg" : "bad index key pattern {}: Index keys cannot be empty.", "code" : 67 }
Version: d0135ad0ed90118ad2015283f22b0219c0df3301
- related to
-
SERVER-13240 CreateIndexes: report per index errors/status
- Closed