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 API Functionality for MongoDB >=6.0 #156

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

darycabrera
Copy link

As of right now the OP_MSG message functionality is incomplete and/or breaking for Mongo server wire versions > 17. The changes made here restore expected behavior for APIs that broke between the migration from mongoDB version 5.0 to 6.0.

NOTE: EOL of MongoDB 5.0 is October 2024

When a batchSize is specified on a GetMore request to MongoDB its
first response with the first batch of docs is returned at the top
level instead of the expected cursor structure. It sometimes occurs
even without the presence of a batchSize parameter in the request.
Re-write the MoreToCome response handling logic to use monadic loops
instead of conduit streaming to yield GetMore responses. The conduit
logic ends up swallowing responses into the abyss instead of producing
and consolidating them as intended.
If nothing else, it simplifies the code.
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