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

feat(NODE-6305): Add CSOT support to tailable cursors #4218

Merged
merged 141 commits into from
Oct 7, 2024

Conversation

W-A-James
Copy link
Contributor

@W-A-James W-A-James commented Sep 3, 2024

Description

What is changing?

AbstractCursor
  • Added logic to implement CSOT logic for tailable awaitData and non-awaitData cursors
onData
  • Only relevant change here is the addition of the commented code used for debugging purposes. Other diffs in this area are due to a messy rebase, but have been checked and are consistent with the expected state of this code. note that all previous CSOT spec, prose and unit tests continue to pass.
RunCommandCursor
  • Added support for tailable and awaitData flags
MongoClient
  • added internal timeoutMS getter
Benchmarks
  • Duplicated all existing benchmarks except the return document benchmark with csot enabled (with an infinite timeout)
Testing
  • Unskipped (and fixed) tailable cursor Blocking Iteration method test
  • Unskipped tailable awaitData and non-awaitData spec tests, duplicated and modified some tests which are only failing due to the the emission of a killCursors event when cleaning up the test resources. Original tests that were skipped have accompanying TODO with linked ticket
  • Added int tests for tailable awaitData and non-awaitData cursors
  • Updated UTR to interpret cursorType
  • Updated UTR to pass through correct options for RunCommandCursor
Is there new documentation needed for these changes?

Not for this PR

What is the motivation for this change?

Release Highlight

Fill in title or leave empty for no highlight

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
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

W-A-James and others added 30 commits August 21, 2024 13:02
Co-authored-by: Warren James <warren.james@mongodb.com>
src/cmap/wire_protocol/on_data.ts Outdated Show resolved Hide resolved
src/cursor/abstract_cursor.ts Outdated Show resolved Hide resolved
src/cursor/abstract_cursor.ts Outdated Show resolved Hide resolved
src/cursor/abstract_cursor.ts Outdated Show resolved Hide resolved
@baileympearson baileympearson added Team Review Needs review from team and removed Primary Review In Review with primary reviewer, not yet ready for team's eyes labels Oct 7, 2024
@baileympearson baileympearson merged commit 9a1b2d0 into NODE-6090 Oct 7, 2024
22 of 24 checks passed
@baileympearson baileympearson deleted the NODE-6305 branch October 7, 2024 17:07
baileympearson pushed a commit that referenced this pull request Oct 10, 2024
Co-authored-by: Neal Beeken <neal.beeken@mongodb.com>
baileympearson pushed a commit that referenced this pull request Oct 10, 2024
Co-authored-by: Neal Beeken <neal.beeken@mongodb.com>
nbbeeken added a commit that referenced this pull request Oct 14, 2024
Co-authored-by: Neal Beeken <neal.beeken@mongodb.com>
baileympearson pushed a commit that referenced this pull request Oct 21, 2024
Co-authored-by: Neal Beeken <neal.beeken@mongodb.com>
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants