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

unable to add a shard when passive members are listed on addshard command

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.7.0
    • Fix Version/s: 1.7.2
    • Component/s: None
    • Labels:
      None
    • Operating System:
      ALL

      Description

      Problem:
      When adding a shard, if the passive members of the replset are included, then the addshard command fails

      db.runCommand(

      { addshard : "set3/rs3a:27018,rs3b:27018,rs3c:27018,rs3d:27018", maxSize: 409600, name : "shard3" }

      );

      {
      "ok" : 0,
      "errmsg" : "host rs3c:27018 does not belong to replica set set3"
      }

      Workaround:
      Only include the active members in the addshard command, and the addshard will succeed

      Reproduce:

      • create a 3 member replset
      • set two nodes with Priority 1 and one with Priority 0
      • try the addshard command with all three nodes
      • get the failure message

      Business Case:
      Ease of use

        Attachments

          Activity

            People

            Assignee:
            kristina Kristina Chodorow (Inactive)
            Reporter:
            alvin Alvin Richards (Inactive)
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: