Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-20219

Add startup warning to 3.0 if have indexes with partialFilterExpression option

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

      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@mongodb.com Max Hirschhorn
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: