Add startup warning to 3.0 if have indexes with partialFilterExpression option

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 3.0.7
    • Affects Version/s: 3.0.6
    • Component/s: Admin, Index Maintenance
    • None
    • Fully Compatible
    • Quint 9 09/18/15
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Max Hirschhorn
            Reporter:
            Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: