[SERVER-63732] Add new implicitlyCreateIndex and enforceUniquenessCheck to shardCollection command Created: 16/Feb/22  Updated: 29/Oct/23  Resolved: 14/Mar/22

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 6.0.0-rc0, 4.2.23, 4.4.17, 5.0.12

Type: Task Priority: Major - P3
Reporter: Randolph Tan Assignee: Randolph Tan
Resolution: Fixed Votes: 0
Labels: sharding-nyc-subteam1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Documented
is documented by DOCS-15173 Investigate changes in SERVER-63732: ... Closed
Problem/Incident
causes SERVER-64519 Critical section reason for create co... Closed
causes SERVER-64580 Step downs while sharding a collectio... Closed
Related
related to SERVER-64573 Make implicitlyCreateIndex and enforc... Closed
related to SERVER-64142 Add new enforceUniqueness to refineCo... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0, v4.4, v4.2
Sprint: Sharding NYC 2022-03-21
Participants:

 Description   

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 Githook User [ 29/Aug/22 ]

Author:

{'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}

Message: SERVER-63732 Add new implicitlyCreateIndex and enforceUniqueness to shardCollection command

(cherry picked from commit 411a12ad600733fc80d9b6e8da86da51dd415ab0)
Branch: v4.2
https://github.com/mongodb/mongo/commit/99ac54df429f2df7a9e322c36f9528dfb405d869

Comment by Githook User [ 25/Aug/22 ]

Author:

{'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}

Message: SERVER-63732 Add new implicitlyCreateIndex and enforceUniqueness to shardCollection command

(cherry picked from commit 0f28913257b0d6fee3b92927d7ec16a2ad54a0a0)
Branch: v4.4
https://github.com/mongodb/mongo/commit/411a12ad600733fc80d9b6e8da86da51dd415ab0

Comment by Randolph Tan [ 24/Aug/22 ]

Branch: v5.0
https://github.com/mongodb/mongo/commit/42d7af66d18a170f88b5457ade1e3dc2d3c8e356

Comment by Githook User [ 14/Mar/22 ]

Author:

{'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}

Message: SERVER-63732 Add new implicitlyCreateIndex and enforceUniqueness to shardCollection command
Branch: master
https://github.com/mongodb/mongo/commit/0f28913257b0d6fee3b92927d7ec16a2ad54a0a0

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