Improve error message when trying to shard on non-existent field

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 2.1.0
    • Affects Version/s: 1.8.2
    • Component/s: Sharding
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      If any of the shard keys don't exist, the error message is fairly opaque. Could it mention the document _id.

      > db.runCommand( { shardcollection : "" + coll, key :

      { bucketId : 1, entityId : 1, variationId : 1 }

      } )

      { "ok" : 0, "errmsg" : "exception: invalid parameter: expected an object ()" }

            Assignee:
            Greg Studer (Inactive)
            Reporter:
            Daniel Pasette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: