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

Make error message better when tags are in the wrong format

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Sharding
    • Labels:
      None

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: