-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
Fully Compatible
-
None
-
0
-
None
-
None
-
None
-
None
-
None
-
None
mongos happily starts when you specify duplicate config servers for the --configdb parameter, for example:
mongos --configdb config1:27017,config1:27017,config3:27017 --logappend --fork
This is easily caused by a typo and can lead to incorrect and unpredictable behavior. In the case of an upgrade from 2.2 to 2.4, it will break the upgrade and manual intervention (resync of config servers, removal of lock, ...) is required.
Each address in the configdb string should be checked not just for string equality but should also be resolved and the resulting address should be checked as well. The set (with no duplicates) of addresses should be equal to the number of entries in the configdb string.
- is duplicated by
-
SERVER-9080 warn or fail on startup when using SCC strings with duplicate host:ports
-
- Closed
-
- related to
-
SERVER-9036 Config server meta-data upgrade from 2.2.3 to 2.4.0 fails with "could not create new collection"
-
- Closed
-
- links to