-
Notifications
You must be signed in to change notification settings - Fork 22
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
File_info_poller send_stream() problem #656
Comments
@kurotych do you actually have an instance where streaming from a file causes an error that ends up in a None? The primary case here would be if you're trying to decode the wrong kind of proto from the file I guess.. or the filesystem has corruption which would be very rare |
Currently, I don't have any instances. The error message was "Error streaming entry in the file of type..." so it is not a proto problem. I'm going to return to developing an appropriate module that can use this code next week and I'll try to prepare clear steps to reproduce. |
Releated: #715 |
Hi @bbalser. I'm not sure. What I see is a good improvement in But, I still see an old part of the code in I believe Maybe I'm wrong but I don't have the appropriate tool and time to test it. That's why I still prefer (or have to) to use the cut version of this file, without this function. https://github.com/helium/oracles/blob/main/file_store/src/file_info_poller.rs#L262 |
Hello.
When I worked with the
file_store
library I faced a critical (as for me) issue in thefile_info_poller
module.Currently, I don't use this part of the code but I think it is worth mentioning.
I had an error "Error streaming entry" due to reset connections by a peer (I kept it too long open) .
But I can't detect it because all I have "outside" is only the next() function.
So I can't distinguish if it is the end of the file or an error in a stream. In both cases, the loop finishes because next() returns None.
https://github.com/helium/oracles/blob/main/file_store/src/file_info_poller.rs#L175
The text was updated successfully, but these errors were encountered: