[SERVER-6574] Make error message better when tags are in the wrong format Created: 24/Jul/12  Updated: 06/Dec/22  Resolved: 08/Mar/18

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

Type: Improvement Priority: Major - P3
Reporter: Kristina Chodorow (Inactive) Assignee: [DO NOT USE] Backlog - Sharding Team
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-6357 Add tag based sharding commands Closed
Assigned Teams:
Sharding
Participants:

 Description   

I incorrectly made a tag doc that looked like:

{ns:"whatever", min:10, max:100, tag:"foo"}

(instead of {ns:"whatever", min:

{shardKey:10}

, max:

{shardKey:100}

, tag:"foo"}). The balancer started logging: "caught exception while doing balance: invalid parameter: expected an object (max)" which was pretty cryptic.



 Comments   
Comment by Gregory McKeon (Inactive) [ 08/Mar/18 ]

We think this issue was resolved with the introduction of the Zone commands in 3.4. Please reopen if that is not the case.

Generated at Thu Feb 08 03:12:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.