-
Type: Bug
-
Resolution: Cannot Reproduce
-
Priority: Critical - P2
-
Affects Version/s: 2.2.34, 3.0.2
-
Component/s: Core
-
(copied to CRM)
-
Empty show more show less
The driver cannot connect to a single node replica set when the replica set name is provided on Windows.
I have provided 3 screen shots, 1 Electron console on Windows (failing), 1 Node console on Windows (failing), 1 Electron console on OSX (passing, although in Compass the SDAM events are not determining the server type properly).
Steps to reproduce:
- Spin up a replica set with only one node in it. For my example I've turned off authentication and named the replica set "single". Ensure the single Node is a primary.
- Connect to the single Node from a Windows machine via MongoClient#connect with the replica set name and read preference in the connection string. I'm replicating on Windows 10 both from the Node REPL and the Electron console.
- Driver will yield a "MongoNetworkError" after a bit of a hang.
- Note that if the replica set name is not provided in the connection string, the connection will succeed.