-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 multiple hosts connection issue #34624
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
This pull request is now in conflicts. Could you fix it? 🙏
|
…nto mongodb_multihost_32188
We can improve the documentation to capture different URL scenarios (single, replica set) supported? |
Done. |
@ritalwar, Can we also add the different MongoDB hosts configuration, currently testing has been done in the PR description? |
sure, will update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments. Also, give me some more time to test these changes.
/test |
After further discussions with @lalit-satapathy, I'm currently addressing the issues identified during testing in this PR. To ensure better tracking and organization, we can handle the refactoring of the MongoDB module in a separate PR. |
…nto mongodb_multihost_32188
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code changes look good. just want a healthcheck in the docker-compose.yml to improve CI reliability
* Fix mongodb multiple hosts connection issue
What does this PR do?
This PR resolves the issues when multiple hosts are used for connection.
This will allow mongodb replica sets in connection string URI to successfully parse and fetch data.
Different host inputs scenarios tested as part of this PR are as follows:
Why is it important?
Without this there will be a bug while using multiple hosts in mongodb connection URI.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.How to test this PR locally
Enable mongodb module. In mongodb.yml file test with both single and multiple hosts connections and it should work for both and fetch data successfully.
Related issues