[SERVER-20247] Include "configsvr":true in default replica set config generated by replSetInitiate if node started with --configsvr Created: 01/Sep/15  Updated: 07/Oct/15  Resolved: 25/Sep/15

Status: Closed
Project: Core Server
Component/s: Replication, Sharding
Affects Version/s: None
Fix Version/s: 3.1.9

Type: Task Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Esha Maharishi (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding A (10/09/15)
Participants:

 Description   

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
}



 Comments   
Comment by Githook User [ 25/Sep/15 ]

Author:

{u'username': u'EshaMaharishi', u'name': u'Esha Maharishi', u'email': u'esha.maharishi@10gen.com'}

Message: SERVER-20247 clang format fix
Branch: master
https://github.com/mongodb/mongo/commit/01da9af54a467ec0a316fb3f78b0a4d40ea29d0c

Comment by Githook User [ 25/Sep/15 ]

Author:

{u'name': u'Esha Maharishi', u'email': u'esha.maharishi@mongodb.com'}

Message: SERVER-20247 include configsvr:true in default replica set config if node started with --configsvr

Signed-off-by: Andy Schwerin <schwerin@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/88c34d5fe384f80508c3b489ced5fcf4ae914bd1

Generated at Thu Feb 08 03:53:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.