[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: |
|
||||||||||||||||||||||||||||||||||||
| 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: (cherry picked from commit 411a12ad600733fc80d9b6e8da86da51dd415ab0) |
| Comment by Githook User [ 25/Aug/22 ] |
|
Author: {'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}Message: (cherry picked from commit 0f28913257b0d6fee3b92927d7ec16a2ad54a0a0) |
| Comment by Randolph Tan [ 24/Aug/22 ] |
|
Branch: v5.0 |
| Comment by Githook User [ 14/Mar/22 ] |
|
Author: {'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}Message: |