rueckstiess / mtools

A collection of scripts to set up MongoDB test environments and parse and visualize MongoDB log files.
Apache License 2.0
1.89k stars 404 forks source link

Connect to the entire replicaset to wait for primary #853

Closed PDAHubbard closed 2 years ago

PDAHubbard commented 2 years ago

Description of changes

Parameter "directConnection=False" added to the host connection parameters.

Testing

The following command should start a new replicaset and add a user with the default username and password: mlaunch init --replicaset --name rs0 --port 30000 --dir db --auth

O/S testing: O/S Version(s)
Linux Ubuntu 20.04.3 LTS (WSL)
macOS
Windows 5.10.16.3-microsoft-standard-WSL2
stennie commented 2 years ago

Fixed by way of 1b9905f