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

Unable to run command shardCollection

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: 2.0.2
    • Fix Version/s: None
    • Component/s: Sharding
    • Environment:
      Mongos running on FreeBSD.
      Config servers and two shards running on debian linux.
    • Operating System:
      ALL

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: