You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Default single-node connstrs to direct connection; improve docs (#143)
mongosh [defaults single-node connections to a direct connection](https://github.com/mongodb-js/mongosh/blob/fea739edfa86edc2a60756d9a9d478f87d94ddda/packages/arg-parser/src/uri-generator.ts#L308). This changeset applies that logic to migration-verifier so that, if a connection string includes only a single node, the verifier will always connect to it.
This is useful, e.g., when using a single, containerized mongod for the metadata DB and the mongod’s replication is set up to reference its hostname. In that case a direct connection is necessary when using Podman or other container engines that don’t “inject” the container name into the host’s name resolution (as, e.g., Docker Desktop on macOS does).
At the same time, this changeset avoids the above problem by explicitly making the documentation’s container one-liner bind to `localhost`.
0 commit comments