Fix for not throwing exception in cpv::RawReaderMemory when processin…#8594
Merged
davidrohr merged 2 commits intoAliceO2Group:devfrom Apr 15, 2022
Merged
Conversation
Collaborator
|
@sevdokim the will now detect the error and return a proper error code (w/o rethrowing) but the caller function does not check the returned value, it just catches exceptions.You should check it and in case of error abandon the TF processing (still sending output to not block the workflow and logging corresponding message, like you do for the deadbeef). |
Contributor
Author
|
Hi @shahor02 |
Collaborator
|
@sevdokim strictly speaking it is not necessary to skip whole TF, but RDH errors usually mean memory problems, likely the whole TF will be corrupted. next() and proceed to decoding unless the exception was caught, but it will not be caught there since you have a catch in the nextPage().
|
Contributor
Author
|
Hi @shahor02 |
shahor02
approved these changes
Apr 15, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…g corrupted RDH
Hello @davidrohr @shahor02
This is a fix to catch exception which is thrown when reading corrupted cpv raw data.