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

Unable to run command shardCollection

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 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

      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 Unassigned
            Reporter:
            balboah Johnny Boy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: