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

Make error message better when tags are in the wrong format

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • None
    • Sharding

    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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: