Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-15191

[Server] Investigate changes in SERVER-64142: Add new enforceUniqueness to refineCollectionShardKey command

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Won't Do
    • None
    • 6.0.0-rc0, 5.0.12, 4.4.17
    • manual, Server
    • None
    • Hide
      Added 2 new fields to the refineShardKey command:
            enforceUniquenessCheck: Controls whether this command verifies that any unique indexes are prefixed by the new shard key pattern if unique is true. If true then it will verify and if false then it won't. Defaults to true.

      Not strictly required to be in 6.0 docs, but eventually in the docs. These new fields are mostly for use by cluster to cluster replication and documentation is mostly for other mongo engineers. Not sure if there's a better place to put it aside from the docs.
      Show
      Added 2 new fields to the refineShardKey command:       enforceUniquenessCheck: Controls whether this command verifies that any unique indexes are prefixed by the new shard key pattern if unique is true. If true then it will verify and if false then it won't. Defaults to true. Not strictly required to be in 6.0 docs, but eventually in the docs. These new fields are mostly for use by cluster to cluster replication and documentation is mostly for other mongo engineers. Not sure if there's a better place to put it aside from the docs.
    • false

    Description

      Original Downstream Change Summary

      Added 2 new fields to the refineShardKey command:
      enforceUniquenessCheck: Controls whether this command verifies that any unique indexes are prefixed by the new shard key pattern if unique is true. If true then it will verify and if false then it won't. Defaults to true.

      Not strictly required to be in 6.0 docs, but eventually in the docs. These new fields are mostly for use by cluster to cluster replication and documentation is mostly for other mongo engineers. Not sure if there's a better place to put it aside from the docs.

      Description of Linked Ticket

      (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

              jocelyn.mendez@mongodb.com Jocelyn Mendez
              backlog-server-pm Backlog - Core Eng Program Management Team
              Jess Mokrzecki Jess Mokrzecki
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                23 weeks, 3 days ago