[SERVER-24751] Extend shardCollection command to accept a collation parameter Created: 23/Jun/16  Updated: 14/Mar/17  Resolved: 27/Jun/16

Status: Closed
Project: Core Server
Component/s: Querying, Sharding
Affects Version/s: None
Fix Version/s: 3.3.10

Type: Task Priority: Major - P3
Reporter: David Storch Assignee: David Storch
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to DOCS-8851 3.4 - update shardCollection command ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 17 (07/15/16)
Participants:

 Description   

The shardCollection command should have the following collation-related behavior:

  • It should optionally accept a collation parameter. If supplied, the parameter must currently have the value {locale: "simple"}, since non-simple collations are not permitted on the shard key.
  • If the collection being sharded has a non-simple default collation, then the command will fail unless {locale: "simple"} is explicitly supplied by the application.
  • If the collection already exists and is non-empty, an index whose prefix is the shard key must be present, and must have the simple collation.


 Comments   
Comment by Githook User [ 27/Jun/16 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-24751 add collation parameter to shardCollection command

This parameter must be used to specify the simple collation
when the collection has a non-simple default collation.
Since the shard key is required to have the simple
collation, we now enforce that there is an index whose
prefix is the shard key and whose collation is the simple
collation.
Branch: master
https://github.com/mongodb/mongo/commit/424a411fa7c8d54c840719dec9af657a357c2578

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