-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
3
-
Iteration Manatee
Compass 1.17.0
Behavior:
The connection string generated for a replica set does not include the port on all hosts.
Reproduction:
- Start two replica sets that each have two members, one with all members listening on 27017 and one with all members on 27018
- e.g. rs0 has two members: server0:27017 and server1:27017
- rs1: server0:27018 and server1:27018
- Add both hosts to the server hostname list
- e.g. server0,server1
- Add port 27018
- Authentication Type: LDAP
- Connect
- Connection will be to the 27017 node or you may receive an error indicating that replica sets do not match.
Workaround:
Use a single host for your connection string or ensure that the node you want to connect to is running on the default port.