Details
-
Bug
-
Resolution: Duplicate
-
Minor - P4
-
None
-
4.0.10
-
None
-
ALL
-
(copied to CRM)
Description
db.c.createIndex({a:'hashed', b:1})
|
The above returns the error message "Currently only single field hashed index supported.” which is in line with the documentation
sh.shardCollection('test.c', {a: 'hashed', b:1})
|
The above returns the error message "Field a can only be 1 or 'hashed'", which is not accurate.
Attachments
Issue Links
- duplicates
-
SERVER-36445 shardCollection command needs a better error message when specifying more than one hashed shard key
-
- Closed
-