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 reported by asyncBlockWriter.addSeries() #133

Merged
merged 2 commits into from
Feb 10, 2022

Conversation

pracucci
Copy link
Collaborator

asyncBlockWriter.loop() can stop anytime due to an error. If returns an error, but the return error is just used to populate bw.finishedCh.

However, asyncBlockWriter.addSeries() doesn't include the error stored in bw.result when returning the error so the actual error stored in bw.result is not visible in logs if an error occurs before we hit the asyncBlockWriter.waitFinished().

This PR should fix it.

Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci requested a review from pstibrany February 10, 2022 14:08
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Copy link
Member

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

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

Makes sense.

@pracucci pracucci merged commit f8e3195 into main Feb 10, 2022
@pracucci pracucci deleted the fix-error-reported-by-asyncblockwriter branch February 10, 2022 15:20
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