Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6574

Make error message better when tags are in the wrong format

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Sharding

      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.

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            kristina Kristina Chodorow (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: