-
Notifications
You must be signed in to change notification settings - Fork 44
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
make carv2 SectionReaders gracefully reject operations after closure #211
Comments
Write a test that asserts reader instantiated from `OpenReader` do not panic and instead error gracefully if underlying IO is closed. Relates to #211
Write a test that asserts reader instantiated from `OpenReader` do not panic and instead error gracefully if underlying IO is closed. Relates to #211
#212 asserts that reading from readers instantiated by This leaves me to believe that if such panic occurs in lotus, bubbling up through a As for @raulk please shout if I have missed anything. |
Thanks @masih for the quick turnaround. Closing this as the issue is related to NewReader with a supplied mmapped region. |
Write a test that asserts reader instantiated from `OpenReader` do not panic and instead error gracefully if underlying IO is closed. Relates to #211
Right now, if they receive a read after a closure, they panic. See filecoin-project/lotus#7111.
We made the blockstores handle closures gracefully here: #195. We should do the same for standard car IO, so that these readers behave just like any other IO in Go (e.g. file IO, network IO, etc.)
The text was updated successfully, but these errors were encountered: