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

Add new enforceUniqueness to refineCollectionShardKey command

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

      (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.

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

              Created:
              Updated:
              Resolved: