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

Make $listCatalog / $indexStats / listIndexes always return index versions for 2dsphere indexes

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing

      Although unversioned 2dsphere indexes are executed as V1, $listCatalog / $indexStats / listIndexes currently don't return "2dsphereIndexVersion" field for them. This affects tools (mongosync, mongodump/mongorestore, mongomirror) that read index specifications from a source cluster and create them on a target cluster. Inconsistencies in index definitions can occur through migration if a 2dsphere index without index version field exists on the source cluster and is executed as a V1 index but is created as a V3 index on the target (due to the default behavior of index creation).

            Assignee:
            Unassigned Unassigned
            Reporter:
            jian.guan@mongodb.com Jian Guan
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: