[SERVER-16995] Validate options for createIndexes command Created: 22/Jan/15  Updated: 22/Jan/15  Resolved: 22/Jan/15

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Ramon Fernandez Marina Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-769 Validate top-level & index spec field... Closed
Participants:

 Description   

Consider the command to build a background index:

db.foo.ensureIndex({bar:1}, {backtround: true}) // typo intentional

A typo in the options like the one above will trigger a foreground index build, with may have a very negative impact on production environments.

It would be nice if we could validate options to the ensureIndex() command, and fail with an error message if invalid options are provided.


Generated at Thu Feb 08 03:42:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.