[SERVER-42271] Return meaningful error when sharding with a compound hashed index Created: 18/Jul/19  Updated: 18/Jul/19  Resolved: 18/Jul/19

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 4.0.10
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Josef Ahmad Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-36445 shardCollection command needs a bette... Closed
Operating System: ALL
Participants:
Case:

 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.



 Comments   
Comment by Janna Golden [ 18/Jul/19 ]

kaloian.manassiev yeah, kimberly.tao@mongodb.com fixed this as a part of SERVER-36445

Generated at Thu Feb 08 05:00:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.