-
Type: Bug
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: 4.0.10
-
Component/s: Sharding
-
None
-
ALL
-
(copied to CRM)
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.
- duplicates
-
SERVER-36445 shardCollection command needs a better error message when specifying more than one hashed shard key
- Closed