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

close the reader after unsealing into blockstore #507

Merged
merged 1 commit into from
Mar 22, 2021

Conversation

dirkmc
Copy link
Contributor

@dirkmc dirkmc commented Mar 22, 2021

There seems to be an issue where the error message when unsealing fails is getting swallowed: filecoin-project/lotus#5829
To make sure any read errors are surfaced, this PR explicitly closes the reader after reading the the unsealed data into the blockstore and returns any error.

@dirkmc dirkmc force-pushed the fix/read-blockstore-close-rdr branch from 78b1e74 to b57e0ed Compare March 22, 2021 09:51
Copy link
Collaborator

@aarshkshah1992 aarshkshah1992 left a comment

Choose a reason for hiding this comment

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

@dirkmc

Closing the pipe will fail all further read and write operations. But, I'm not sure if this is the culprit of the problem we are seeing.

Anyways, this is better than we have and is the right thing to do.

@dirkmc dirkmc merged commit 0f8f468 into master Mar 22, 2021
@dirkmc dirkmc deleted the fix/read-blockstore-close-rdr branch March 22, 2021 10:12
@dirkmc dirkmc mentioned this pull request Mar 22, 2021
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