We should adjust the addShard code so that it refuses to add CSRS replica sets as shards. It should detect that the node is a config server by running replSetGetStatus, and in addition to checking for “info: configsvr”, it should also detect “configServer: true” and reject adding shards that report that.
To that end, replSetGetStatus should also report configServer: true as a top level field if the replica set config document indicates that the replica set is for a config server per SERVER-19524.
- depends on
-
SERVER-19524 Support for configServer labeling of replica set configurations
- Closed
- is depended on by
-
SERVER-1448 Host sharding config data on a replica set
- Closed
- is duplicated by
-
SERVER-18619 Explicitly disallow the config server replica set from being added as a shard
- Closed
-
SERVER-19219 Audit the new shard validation logic for addShard
- Closed