[SERVER-12070] Validate all indexes for new restrictions at startup Created: 12/Dec/13  Updated: 28/Oct/15  Resolved: 11/Feb/14

Status: Closed
Project: Core Server
Component/s: Diagnostics, Index Maintenance
Affects Version/s: None
Fix Version/s: 2.6.0-rc0

Type: Task Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-12242 can't run "compact" on a collection i... Closed
related to SERVER-12244 can't run reIndex() on collection if ... Closed
related to SERVER-11374 Can create indexes on non-insertable ... Closed
related to SERVER-8391 Pre-flight upgrade tool to check for ... Closed
related to SERVER-10857 Improve error checking of text index ... Closed
related to SERVER-11812 Can create indexes on invalid fields ... Closed
Participants:

 Description   

Add startup warnings for any invalid (indexes which can no longer be created) index spec. so users know they have an issue.



 Comments   
Comment by Mathias Stearn [ 11/Feb/14 ]

New dochub link: http://dochub.mongodb.org/core/index-validation

Comment by Githook User [ 11/Feb/14 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-12070 SERVER-12242 SERVER-12244 Validate existing indexes
Branch: master
https://github.com/mongodb/mongo/commit/b5f67b6a6aec989aec7c01fd445b25c5804f9016

Comment by Githook User [ 11/Feb/14 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: Move index key validation into IndexCatalog::validateKeyPattern

This just moves around existing checks and tries to harmonize the error
messages. Should not change behavior other than error text.

Prep for SERVER-12070 SERVER-12242 SERVER-12244. They will all use this
function to do their validation.
Branch: master
https://github.com/mongodb/mongo/commit/320ccdad6bd6975a3d7480e1bf8374353c545ec6

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