Skip to content

FileReadError on a local file, but only when prefetching #49215

@makortel

Description

@makortel

I ended up having a local file (actually Run2024 PromptReco MiniAOD file of #49202 copied to have the intended branch splitting structure) that works fine with PoolSource out of the box, but if prefetching is enabled with

process.add_(cms.Service("SiteLocalConfigService",
    overridePrefetching = cms.untracked.bool(True)
))

a reading job fails with

24-Oct-2025 20:51:28 CEST  Successfully opened file file:initialconversion_ttree_miniprod_lzma4.root
R__unzipLZMA: error 9 in lzma_code
24-Oct-2025 20:51:28 CEST  Closed file file:initialconversion_ttree_miniprod_lzma4.root
----- Begin Fatal Exception 24-Oct-2025 20:51:28 CEST-----------------------
An exception of category 'FileReadError' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing input source of type PoolSource
   [2] Reading branch EventAuxiliary entry 417
   Additional Info:
      [a] Fatal Root Error: @SUB=TBasket::ReadBasketBuffers
fNbytes = 17844, fKeylen = 83, fObjlen = 101708, noutot = 0, nout=0, nin=17761, nbuf=101708

----- End Fatal Exception -------------------------------------------------

With the application-only storage hint (local files should by default behave as storage-only hint) the reading job succeeds.

I did this test with 15_1_0_pre6_RNTUPLE build.

Given the number of issues we have seen with R__unzipLZMA: error 9 in lzma_code, that we have interpreted as corrupted files, a deeper investigation into this behavior could be worth it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions