Skip to content

Conversation

gagik
Copy link
Collaborator

@gagik gagik commented Oct 10, 2025

Should help in cases where multiple processes are trying to download Mongo binaries.

Probably needs more testing.

@gagik gagik changed the title chore(mongodb-downloader): use a lockfile to prevent redundant parallel downloads MONGOSH-1875 feat(mongodb-downloader)!: use a lockfile to prevent redundant parallel downloads MONGOSH-1875 Oct 10, 2025
Object.create(null);

// Download mongod + mongos and return the path to a directory containing them.
async downloadMongoDbWithVersionInfo(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is kind of a big breaking change... I am open to refactoring back but this should relatively simple migration generally and in my opinion a general improvement.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see the lockfile part as also a big "breaking" change (unless we make it opt-in) so I kind of see an opportunity to do this now

@gagik gagik force-pushed the gagik/download-dir branch from fa16082 to 20e4664 Compare October 10, 2025 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant