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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.7.2
    • Affects Version/s: 1.7.0
    • Component/s: None
    • Labels:
      None
    • ALL

      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

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

              Created:
              Updated:
              Resolved: