Unable to run command shardCollection

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.0.2
    • Component/s: Sharding
    • Environment:
      Mongos running on FreeBSD.
      Config servers and two shards running on debian linux.
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I have several databases/collections with identical structure and index keys but different values.
      Enabling sharding works for all but one database which gives me this:

      mongos> db.runCommand({"shardCollection": "xxx_ar.relevancyScores", "key":

      {source: 1, date: 1}

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

      I have tried running the command in lowercase without any luck.

              Assignee:
              Unassigned
              Reporter:
              Johnny Boy
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: