Skip to content

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