[DOCS-15173] Investigate changes in SERVER-63732: Add new implicitlyCreateIndex and enforceUniquenessCheck to shardCollection command Created: 14/Mar/22  Updated: 13/Nov/23  Resolved: 19/Apr/22

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 6.0.0-rc0, 5.0.12, 4.4.17, 4.2.23, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Jocelyn Mendez
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-63732 Add new implicitlyCreateIndex and enf... Closed
Participants:
Days since reply: 1 year, 23 weeks, 2 days ago
Epic Link: DOCSP-19446

 Description   
Original Downstream Change Summary

Added 2 new fields to the shardCollection command:
implicitlyCreateIndex: Creates an index on the shard key pattern if the collection is empty. Defaults to true.
enforceUniquenessCheck: Controls whether this command verifies that any unique indexes are prefixed by the 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

implicitlyCreateIndex defaults to true and when set to false, will not create new indexes while running the shardCollection command.

enforceUniquenessCheck defaults to true and when set to false, ignores uniqueness property when validating indexes for shardCollection.

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



 Comments   
Comment by Education Bot [ 29/Aug/22 ]

Fix Version updated for upstream SERVER-63732:
6.0.0-rc0, 4.2.23, 4.4.17, 5.0.12

Comment by Education Bot [ 25/Aug/22 ]

Fix Version updated for upstream SERVER-63732:
6.0.0-rc0, 4.4.17, 5.0.12

Comment by Education Bot [ 23/Aug/22 ]

Fix Version updated for upstream SERVER-63732:
6.0.0-rc0, 5.0.12

Comment by Jess Mokrzecki [ 28/Mar/22 ]

Fix Version updated for upstream SERVER-63732:
6.0.0-rc0

Comment by Jess Mokrzecki [ 28/Mar/22 ]

Fix Version updated for upstream SERVER-63732:
6.0.0, 6.0.0-rc0

Comment by Jess Mokrzecki [ 18/Mar/22 ]

Fix Version updated for upstream SERVER-63732:
6.0.0

Comment by Jess Mokrzecki [ 14/Mar/22 ]

Fix Version updated for upstream SERVER-63732:
5.3.0-rc4

Generated at Thu Feb 08 08:12:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.