[SERVER-20219] Add startup warning to 3.0 if have indexes with partialFilterExpression option Created: 31/Aug/15  Updated: 13/Oct/15  Resolved: 14/Sep/15

Status: Closed
Project: Core Server
Component/s: Admin, Index Maintenance
Affects Version/s: 3.0.6
Fix Version/s: 3.0.7

Type: Task Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Max Hirschhorn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Quint 9 09/18/15
Participants:

 Description   

Creating an index on 3.0 with a partialFilterExpression option (valid in 3.2 or not) should generate a startup warning that explains how the index will contain entries for all documents in the collection. It needs to be dropped and recreated after upgrading to 3.2 in order to actually be a partial index.

If a 3.2 mongod is downgraded to 3.0, then any indexes that have a partialFilterExpression option may not contain index entries for all documents in the collection. We should also generate a startup warning to explain that the index may need to be dropped and recreated to avoid missing documents when it used to answer queries on 3.0.



 Comments   
Comment by Githook User [ 14/Sep/15 ]

Author:

{u'username': u'visemet', u'name': u'Max Hirschhorn', u'email': u'max.hirschhorn@mongodb.com'}

Message: SERVER-20219 Warn if an index has a partialFilterExpression option.

Generate a warning on index creation and database startup if an index is
found to have a partialFilterExpression option because partial indexes
are not supported in 3.0.
Branch: v3.0
https://github.com/mongodb/mongo/commit/4ea8fda0b0b2ddbc33bf8782f2fa53c554e1c50e

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