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

materialize-mongodb: don't send a batch if there were 0 documents #2160

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

williamhbaker
Copy link
Member

@williamhbaker williamhbaker commented Nov 21, 2024

Description:

When setting a notBefore configuration there will be transactions with 0 stored documents. This adds a condition to prevent a panic trying to send a batch in Store when there aren't any documents to store.

Workflow steps:

(How does one use this feature, and how has it changed)

Documentation links affected:

(list any documentation links that you created, or existing ones that you've identified as needing updates, along with a brief description)

Notes for reviewers:

(anything that might help someone review this PR)


This change is Reviewable

When setting a `notBefore` configuration there will be transactions with 0
stored documents. This adds a condition to prevent a panic trying to send a
batch in Store when there aren't any documents to store.
Copy link
Contributor

@Alex-Bair Alex-Bair left a comment

Choose a reason for hiding this comment

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

LGTM

@williamhbaker williamhbaker merged commit a2f8522 into main Nov 21, 2024
51 of 53 checks passed
@williamhbaker williamhbaker deleted the wb/mat-mongo branch November 21, 2024 15:02
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.

2 participants