I am loading ~159 root files, which have several Ttrees in it, into a big TChain, then I loop over all the events in the TChain from time to time (I guess for every file) I get this error message:
Error in TFile::ReadBuffer: error reading all requested bytes from file /afs/atlass01.physik.uni-bonn.de/user/radics/scratch.0/data/hitfit/5200/user.BalintRadics.TopView121302_MuidTauRec_balint.trig1_misal1_mc12.005200.T1_McAtNlo_Jimmyv12000601.098.AANT0._00106.root, got 0 of 1032
Humm … somehow the underlying file i/o unix library is unable to read the file (is it accessible? is it corrupted?). You should check that the file listed is properly accessible and have the proper length.
it seems that it only happens when I load 159 such files (~80 MBytes each) into a huge TChain and then I loop on all the events, then I get this message time to time for every file.
…which can be any combination of network, AFS, disk of the AFS server, memory of the local machine. I’d ask your admins to check their logs, with a specific file name and time stamp, and check your kernel’s log + ifconfig for network problems.