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(NODE-4467): Add back support for oplogReplay option as deprecated #3337

Merged
merged 2 commits into from
Aug 1, 2022

Conversation

sampaiodiego
Copy link
Contributor

@sampaiodiego sampaiodiego commented Jul 27, 2022

Description

The option has been deprecated for MongoDB >=4.4 but should still be available to MongoDB <=4.2

What is changing?

Oplog tailing for MongoDB server <=4.2 can still use this flag in order to have a better performance.

Is there new documentation needed for these changes?

No

What is the motivation for this change?

The initial query to tail the oplog on huge MongoDB 4.2 servers was taking too long to complete.

Double check the following

  • Ran npm run check:lint script
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: <type>(NODE-xxxx)<!>: <description>
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

The option has been deprecated for MongoDB >=4.4 but should still be available to MongoDB <=4.2
@durran durran added tracked-in-jira Ticket filed in MongoDB's Jira system Primary Review In Review with primary reviewer, not yet ready for team's eyes labels Jul 28, 2022
Copy link
Member

@durran durran left a comment

Choose a reason for hiding this comment

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

Thanks @sampaiodiego for the PR! Could you add a unit test similar to the other operation constructor tests (example: https://github.com/mongodb/node-mongodb-native/blob/main/test/unit/operations/aggregate.test.js) so have a test to avoid another regression?

@sampaiodiego
Copy link
Contributor Author

sure thing @durran .. I've added a few tests, let me know if that's good enough.. thx

@durran durran added Team Review Needs review from team and removed Primary Review In Review with primary reviewer, not yet ready for team's eyes labels Jul 29, 2022
@dariakp dariakp merged commit 6c69b7d into mongodb:main Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team Review Needs review from team tracked-in-jira Ticket filed in MongoDB's Jira system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants