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: Error handling in StreamingBatchWriter #1921

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

disq
Copy link
Member

@disq disq commented Oct 3, 2024

Reverts the revertion, plus one more improvement.

original PR: #1913

@disq disq requested a review from a team as a code owner October 3, 2024 15:38
@disq disq requested a review from erezrokah October 3, 2024 15:38
@github-actions github-actions bot added the fix label Oct 3, 2024
}
defer func() {
err := w.Close(ctx)
retErr = errors.Join(retErr, err)
Copy link
Member Author

Choose a reason for hiding this comment

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

New improvement: always do w.Close even we returned an error, and join errors.

@disq disq removed the no automerge label Oct 4, 2024
kodiakhq bot pushed a commit to cloudquery/cloudquery that referenced this pull request Oct 7, 2024
kodiakhq bot pushed a commit to cloudquery/cloudquery that referenced this pull request Oct 7, 2024
kodiakhq bot pushed a commit to cloudquery/cloudquery that referenced this pull request Oct 7, 2024
Getting the azblob plugin ready for the [StreamingBatchWriter update](cloudquery/plugin-sdk#1921). ~Incorporates cloudquery/filetypes#579 and cloudquery/plugin-sdk#1921
kodiakhq bot pushed a commit to cloudquery/cloudquery that referenced this pull request Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants