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

RS hidden setting should treat 1 as true

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.8.1, 1.9.0
    • Affects Version/s: 1.8.0-rc1
    • Component/s: Replication
    • None
    • ALL

      Currently it is just silently ignored

      rs.reconfig( {_id: 'rs', members: [{_id:0, host:'50.56.91.235'}, {_id:1,host:'50.56.91.254'}, {_id:2, host:'50.56.91.222', hidden:1, priority:0}]})

      rs:PRIMARY> rs.isMaster()
      {
      "setName" : "rs",
      "ismaster" : true,
      "secondary" : false,
      "hosts" : [
      "50.56.91.254",
      "50.56.91.235"
      ],
      "passives" : [
      "50.56.91.222"
      ],
      "maxBsonObjectSize" : 16777216,
      "ok" : 1
      }

      > rs.initiate( {_id: 'rs', members: [{_id:0, host:'50.56.91.235'}, {_id:1,host:'50.56.91.254'}, {_id:2, host:'50.56.91.222', hidden:true, priority:0}]})
      {
      "info" : "Config now saved locally. Should come online in about a minute.",
      "ok" : 1
      }
      > rs.isMaster()
      {
      "setName" : "rs",
      "ismaster" : true,
      "secondary" : false,
      "hosts" : [
      "50.56.91.254",
      "50.56.91.235"
      ],
      "maxBsonObjectSize" : 16777216,
      "ok" : 1
      }

            Assignee:
            kristina Kristina Chodorow (Inactive)
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: