Include "configsvr":true in default replica set config generated by replSetInitiate if node started with --configsvr

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 3.1.9
    • Affects Version/s: None
    • Component/s: Replication, Sharding
    • None
    • Fully Compatible
    • Sharding A (10/09/15)
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This is a usability concern.
      Most people when initiate a new replset just run rs.initate() and rely on the replSetInitiate code to generate a good default config for them, then they rs.add() their additional nodes after. Currently if you try that to initiate a CSRS you get:

      > rs.initiate()
      {
              "info2" : "no configuration specified. Using a default configuration for the set",
              "me" : "ubuntu:27019",
              "ok" : 0,
              "errmsg" : "Nodes started with the --configsvr flag must have configsvr:true in their config",
              "code" : 93
      }
      

            Assignee:
            Esha Maharishi (Inactive)
            Reporter:
            Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: