-
Notifications
You must be signed in to change notification settings - Fork 65
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
chore: ImmutableDB Error handling #426
chore: ImmutableDB Error handling #426
Conversation
Thanks @Mr-Leshiy for the PR. Please help me understand the rationale. If I understand correctly, this is not an expected state of the data. I imagine this is an edge-case that occurs if the snapshot is generated from a running node. Is that the case? If so, I believe that the appropriate behavior should be to track the error and let the lib consumer decide what to do. Either to skip the issue with a warning (as seems to be your requirement) or to handle the exception in some other way. So my concrete questions are:
|
Yes, seems so. So basically I have dowloaded a mithril snapshot from that link which I have provided in description.
Either to skip the issue with a warning (as seems to be your requirement) or to handle the exception in some other way. |
6861e48
to
c992da0
Compare
@scarmuega Sorry for the delay. |
@scarmuega do you require any other changes or clarification to this PR? |
Fixed an issue which occur when reading a snapshot data with the inconsistent index data.
If this appears, stops the reader on the last successful read operation and log it.
This happened with the
preprod-e133-i2582.4d4c207fbbdd10a3edb487f57670f4091e96fb8c9fae16ac98bdce20e78dd6b4
snapshot downloaded from aggregatorhttps://storage.googleapis.com/cdn.aggregator.release-preprod.api.mithril.network/preprod-e133-i2582.4d4c207fbbdd10a3edb487f57670f4091e96fb8c9fae16ac98bdce20e78dd6b4.tar.zst