Repository navigation
Conversation
…t be opened The checks for "no TF left" in getTimeFrameNumber and getFileFolder only applied when the file had timeframes, so on an AO2D without any DF folder they indexed an empty list: the reader crashed with a segmentation fault in DataInputDescriptor::getFileFolder, with the ROOT and the native backend alike. Such files exist: merging a derived AO2D which was not closed gives an AO2D without DF folders (e.g. /alice/cern.ch/user/a/alihyperloop/jobs/0654/hy_6549405/AOD/001/AO2D.root). An AO2D without DF folders means data was lost upstream, so do not skip it silently: setFile() closes it and throws AODReadError FileOpen, as for a file which cannot be opened. With --skip-invalid-reads it is skipped and counted in AOD_FILE_OPEN_SKIPPED_FILES; otherwise the processing stops with the name of the file. The range checks no longer depend on the file having timeframes.
Member
Author
|
@autumn-mck @jgrosseo this explains a number of the remaining errors. Apparently due to a bug in the merger (fixed in #16187) it is possible that resulting files have no entries. This treats those files as broken ones and does a proper error report / skips them. |
This branch has not been deployed
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.
The checks for "no TF left" in getTimeFrameNumber and getFileFolder only
applied when the file had timeframes, so on an AO2D without any DF
folder they indexed an empty list: the reader crashed with a
segmentation fault in DataInputDescriptor::getFileFolder, with the ROOT
and the native backend alike. Such files exist: merging a derived AO2D
which was not closed gives an AO2D without DF folders (e.g.
/alice/cern.ch/user/a/alihyperloop/jobs/0654/hy_6549405/AOD/001/AO2D.root).
An AO2D without DF folders means data was lost upstream, so do not skip
it silently: setFile() closes it and throws AODReadError FileOpen, as
for a file which cannot be opened. With --skip-invalid-reads it is
skipped and counted in AOD_FILE_OPEN_SKIPPED_FILES; otherwise the
processing stops with the name of the file. The range checks no longer
depend on the file having timeframes.