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

XMLWordPrintableJSON

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

      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 Chodorow (Inactive)
              Reporter:
              Alvin Richards (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: