Skip to content

Conversation

W-A-James
Copy link
Contributor

@W-A-James W-A-James commented Oct 8, 2024

Description

What is changing?

  • changeStream iteration methods now throw when the aggregate command that establishes the change stream on the server side fails
Is there new documentation needed for these changes?

What is the motivation for this change?

Release Highlight

Change stream infinite resume bug fixed

Before this fix, when change streams would fail to establish a cursor on the server, the driver would infinitely attempt to resume the change stream. Now, when the aggregate to establish the change stream fails, the driver will throw an error and clos the change stream.

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 W-A-James changed the title fix change stream infinite resume fix(NODE-6418): change stream resumes infinitely after failed aggregates Oct 8, 2024
@W-A-James W-A-James marked this pull request as ready for review October 9, 2024 17:32
@nbbeeken nbbeeken self-assigned this Oct 9, 2024
@nbbeeken nbbeeken added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Oct 9, 2024
@nbbeeken
Copy link
Contributor

nbbeeken commented Oct 9, 2024

A few of the test failures look brand new but also unrelated, can you double-check them?

@W-A-James W-A-James requested a review from nbbeeken October 9, 2024 19:10
@nbbeeken nbbeeken 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 9, 2024
@nbbeeken nbbeeken merged commit 6ecf198 into main Oct 9, 2024
28 of 30 checks passed
@nbbeeken nbbeeken deleted the change-stream-throw-on-failed-aggregate branch October 9, 2024 20:42
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.

2 participants