Skip to content

Conversation

W-A-James
Copy link
Contributor

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

Description

What is changing?

  • Add hasChangeStreamStage property to AggregateOperation
  • Update AggregateOperation.canRetryRead to return false when hasChangeStreamStage is true
Is there new documentation needed for these changes?

No

What is the motivation for this change?

NODE-6422

Release Highlight

Aggregates with $changeStream stage are no longer retried

Prior to this change, aggregate commands with a $changeStream stage would be retried against the server when a transient error occurred. This was unintended behaviour and has been corrected here.

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: aggregates with $changeStream stage are being retried fix(NODE-6422): aggregates with $changeStream stage are being retried Oct 9, 2024
@W-A-James W-A-James marked this pull request as ready for review October 9, 2024 21:52
@W-A-James W-A-James closed this Oct 10, 2024
@W-A-James W-A-James deleted the no-retry-for-change-stream-stage branch May 15, 2025 19:32
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