-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 2.5
-
Component/s: Configuration
-
Fully Compatible
As in other drivers, the name of the query parameter in the URI is replicaSet. In MongoClientOptions, the slightly more descriptive property name of requiredReplicaSetName will be used. The presence of the replica set name in either place will have two effects:
- it will force the driver into replica-set mode, which means that even if there is only one member provided in the seed list, the driver will treat this as a replica set connection and discover all members (even so, users are still highly encouraged to provide at least a three member seed list).
- the driver will drop seed list members that are either not replica set members or else members of a replica set with a different name. This will be logged as SEVERE.
- is related to
-
JAVA-244 MongoURI for Java Driver should support all speced options (e.g. w, fsync, etc)
- Closed