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

MongosProcessInterface::fieldsHaveSupportingUniqueIndex should read sharded collection indexes from a shard with chunks

    • Fully Compatible
    • ALL
    • v4.4
    • Sharding 2020-03-23, Sharding 2020-04-06, Sharding 2020-04-20

      MongosProcessInterface::fieldsHaveSupportingUniqueIndex checks that a unique index exists to support given field paths by sending listIndexes to the primary shard for a namespace. As of SERVER-45103, the primary shard for a sharded collection isn't guaranteed to have correct indexes, so instead listIndexes should be sent with a shard version to a shard that owns at least one chunk. Additionally, for unsharded collections, the listIndexes should be sent with a database version to handle movePrimary.

            Assignee:
            jack.mulrow@mongodb.com Jack Mulrow
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: