[SERVER-19696] Don't allow using a replica set as the config server unless it has configServer:true in its replica set config Created: 31/Jul/15  Updated: 25/Jan/17  Resolved: 23/Sep/15

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

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

Issue Links:
Duplicate
is duplicated by SERVER-19137 Require config servers to have the --... Closed
Related
related to SERVER-1448 Host sharding config data on a replic... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 7 08/10/15, Sharding 9 (09/18/15), Sharding A (10/09/15)
Participants:

 Comments   
Comment by Andy Schwerin [ 23/Sep/15 ]

I believe the 3.1.8 release notes already mention this, but it is necessary to pass --configsvr when starting a mongod as a config server. With this patch, the code will enforce that config servers are started with --configsvr and that shards are not. Shards and mongos nodes will generally refuse to interact with config servers started without --configsvr.

Comment by Githook User [ 23/Sep/15 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-19696 Do not allow nodes started with --configsvr to act as data shards.

Also, prohibit nodes started without --configsvr from acting as config servers.
Branch: master
https://github.com/mongodb/mongo/commit/57329d7b7283606e80047589a29bacb70b73ec17

Comment by Githook User [ 23/Sep/15 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-19696 Change js tests that use mongod nodes as config servers to pass --configsvr.

All nodes used as config servers should be started with --configsvr, and
this will be enforced in upcoming changes.
Branch: master
https://github.com/mongodb/mongo/commit/bf22ad124a2bb77e8347a63934a02389d1ca7baa

Comment by Andy Schwerin [ 22/Sep/15 ]

It appears that code changes are required to support this.

Comment by Andy Schwerin [ 17/Sep/15 ]

This may just need to be verified as already working.

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