Skip to content

DPL Analysis: report an AO2D without DF folders as a file which cannot be opened - #16188

Open
ktf wants to merge 1 commit into
AliceO2Group:devfrom
ktf:pr16188
Open

ktf wants to merge 1 commit into
AliceO2Group:devfrom
ktf:pr16188

Conversation

@ktf

@ktf ktf commented Nov 24, 2026

Copy link
Copy Markdown
Member

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.

…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.
@ktf
ktf requested a review from a team as a code owner November 24, 2026 14:14
@ktf

ktf commented Nov 24, 2026 •

Copy link
Copy Markdown
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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant