-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor - P4
-
Affects Version/s: None
-
Component/s: Configuration
-
None
The following code computes ClusterConnectionMode.MULTIPLE
ClusterSettings.builder()
.applyConnectionString(new ConnectionString("mongodb://127.0.0.1:27017/?replicaSet=replset"))
.build()
.getMode()
but its direct counterpart that does not use applyConnectionString computes ClusterConnectionMode.SINGLE
ClusterSettings.builder()
.hosts(Collections.singletonList(
new ServerAddress("127.0.0.1", 27017)
))
.requiredReplicaSetName("replset")
.build()
.getMode()