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

replica set config field "settings" isn't returned from rs.conf()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.4, 2.3.2
    • Component/s: Replication
    • Labels:
      None
    • Operating System:
      ALL

      Description

      foo:PRIMARY> rs.conf()
      {
      	"_id" : "foo",
      	"version" : 2,
      	"members" : [
      		{
      			"_id" : 0,
      			"host" : "erh-mb5-2.local:27017"
      		}
      	]
      }
      foo:PRIMARY> x = rs.conf()
      {
      	"_id" : "foo",
      	"version" : 2,
      	"members" : [
      		{
      			"_id" : 0,
      			"host" : "erh-mb5-2.local:27017"
      		}
      	]
      }
      foo:PRIMARY> x.settings = { chainingAllowed : false }
      { "chainingAllowed" : false }
      foo:PRIMARY> x
      {
      	"_id" : "foo",
      	"version" : 2,
      	"members" : [
      		{
      			"_id" : 0,
      			"host" : "erh-mb5-2.local:27017"
      		}
      	],
      	"settings" : {
      		"chainingAllowed" : false
      	}
      }
      foo:PRIMARY> rs.reconfig(x)
      { "ok" : 1 }
      foo:PRIMARY> rs.conf()
      {
      	"_id" : "foo",
      	"version" : 3,
      	"members" : [
      		{
      			"_id" : 0,
      			"host" : "erh-mb5-2.local:27017"
      		}
      	]
      }
      foo:PRIMARY> 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kristina Kristina Chodorow
              Reporter:
              eliot Eliot Horowitz
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: