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

Add new enforceUniqueness to refineCollectionShardKey command

    XMLWordPrintable

Details

    • Fully Compatible
    • v5.0, v4.4, v4.2
    • Sharding NYC 2022-03-21, Sharding NYC 2022-04-04

    Description

      (Analogous to SERVER-63732 but for the refineCollectionShardKey command. An implicitlyCreateIndex parameter isn't relevant for refineCollectionShardKey because the command won't attempt to create an index even when the collection is empty.)

      enforceUniqueness defaults to true and when set to false, ignores uniqueness property when validating indexes for refineCollectionShardKey.

      Regardless of both settings, refineCollectionShardKey should still return an error if there are no index that is compatible with the new shard key pattern.

      Attachments

        Issue Links

          Activity

            People

              randolph@mongodb.com Randolph Tan
              max.hirschhorn@mongodb.com Max Hirschhorn
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: