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

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

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4
    • Sprint:
      Sharding 2020-03-23, Sharding 2020-04-06, Sharding 2020-04-20

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            jack.mulrow Jack Mulrow
            Reporter:
            jack.mulrow Jack Mulrow
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: