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-3833): return early on end if gridfs upload stream is already ended #3223

Merged
merged 2 commits into from
Apr 29, 2022

Conversation

dariakp
Copy link
Contributor

@dariakp dariakp commented Apr 28, 2022

Description

NODE-3833

What is changing?

Fixed the end override on upload gridfs stream to return early on repeat calls.

Is there new documentation needed for these changes?

What is the motivation for this change?

We don't want to write duplicate chunks to the steam after it has already ended.

Among other things, this fix ensures we are not affected by the following pipeline bug:
nodejs/node#42866

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
  • [N/A] New TODOs have a related JIRA ticket (though there is a relevant follow up ticket: NODE-4219)

@nbbeeken nbbeeken added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Apr 28, 2022
@nbbeeken nbbeeken self-requested a review April 28, 2022 21:32
Copy link
Contributor

@nbbeeken nbbeeken left a comment

Choose a reason for hiding this comment

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

LGTM

@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 Apr 28, 2022
@durran durran merged commit c27e844 into main Apr 29, 2022
@durran durran deleted the NODE-3833/gridfs-end-stream-override-fix branch April 29, 2022 15:00
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.

4 participants