rueckstiess / mtools

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

Replica set initialization announcement is printed after initialization is complete #868

Closed p-mongo closed 2 years ago

p-mongo commented 2 years ago

Code: https://github.com/rueckstiess/mtools/blob/develop/mtools/mlaunch/mlaunch.py#L1844

The printing of "initializing replica set" happens after the command is sent to the server to do so. If the command failed the announcement is printed after all of the retries finished.

The announcement should precede the command.

p-mongo commented 2 years ago

Fix: https://github.com/p-mongodb/mtools-legacy/commit/0b9abb5b77899b799ec58d07527d986336c85f96

stennie commented 2 years ago

Belated thanks @p-mongo !

Cheers, Stennie

stennie commented 2 years ago

Fixed via ba01571