[SERVER-60926] Make enableSharding command optional Created: 22/Oct/21 Updated: 29/Oct/23 Resolved: 28/Feb/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.0.0-rc0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Tommaso Tocci | Assignee: | Tommaso Tocci |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | shardingemea-qw | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Backwards Compatibility: | Minor Change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Sprint: | Sharding EMEA 2022-02-21, Sharding EMEA 2022-03-07 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
Before to create a sharded collection it is currently required to invoke the enableSharding command. This command doesn't really do much apart from setting a flag in config.databases, that is only consumed by the shardCollection command. This additional step is not very useful and not really required in order to create a sharded collection, additionally it contributes to make the sharding experience more complicated than than the replica set one without any real benefit. This ticket contain a proposal to make the enableSharding command optional and to deprecate it. Proposal:
|
| Comments |
| Comment by Githook User [ 08/Mar/22 ] |
|
Author: {'name': 'Frederic Vitzikam (fredvitz)', 'email': '95658478+fredvitz@users.noreply.github.com', 'username': 'fredvitz'}Message: REP-157 Fix TestInitializeCollections_EnableShardingAndShardCollection (#143)
|
| Comment by Githook User [ 08/Mar/22 ] |
|
Author: {'name': 'Frederic Vitzikam (fredvitz)', 'email': '95658478+fredvitz@users.noreply.github.com', 'username': 'fredvitz'}Message: REP-157 Fix TestInitializeCollections_EnableShardingAndShardCollection (#143)
|
| Comment by Tommaso Tocci [ 07/Mar/22 ] |
|
massimiliano.marcon starting from 6.0 we can't rely anymore on the `partitioned` field in `config.databases`. So if you have any code in mongosh that uses this field you should change it accordingly. |
| Comment by Githook User [ 03/Mar/22 ] |
|
Author: {'name': 'Frederic Vitzikam (fredvitz)', 'email': '95658478+fredvitz@users.noreply.github.com', 'username': 'fredvitz'}Message: REP-157 Fix TestInitializeCollections_EnableShardingAndShardCollection (#143)
|
| Comment by Githook User [ 28/Feb/22 ] |
|
Author: {'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}Message: |