Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(MongoDb): Evaluate replica set status in wait strategy #1369

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

HofmeisterAn
Copy link
Collaborator

@HofmeisterAn HofmeisterAn commented Feb 13, 2025

What does this PR do?

The PR updates the MongoDB shell script that initiates the replica set during startup. The previous script contained a bug where the script succeed on rs.initiate() but never check the actually replica set status (rs.status()).

Why is it important?

This caused race conditions where the MongoDB module indicated readiness too early (before the replica set was fully initiated).

Kudos to @Yorie for taking the time to look into the bug. Thanks again.

Related issues

@HofmeisterAn HofmeisterAn added the bug Something isn't working label Feb 13, 2025
Copy link

netlify bot commented Feb 13, 2025

Deploy Preview for testcontainers-dotnet ready!

Name Link
🔨 Latest commit 3e4e2d3
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-dotnet/deploys/67ae406aa0a041000888f49f
😎 Deploy Preview https://deploy-preview-1369--testcontainers-dotnet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@HofmeisterAn HofmeisterAn merged commit 13dcbe4 into develop Feb 13, 2025
111 checks passed
@HofmeisterAn HofmeisterAn deleted the bugfix/fix-rs-initiate-race-condition branch February 13, 2025 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Could not connect to a Mongo DB replica set with new Mongo DB driver 3.0.x
1 participant