Skip to content

Commit a361769

Browse files
committed
Workaround crash in TPC digitization
TPC digitization currently crashes when multiple workers try to load FEEConfig via TPC/Config/RunInfoV2. Recently the TPC code was changed to use this redirecting object. The hypothesis is that there is a problem in the CcdbApi when using CCDB redirects which is bypassing semaphore syncronization of CCDB loads. This leads to race conditions and corrupted CCDB snapshots. This commit reduces such a race condition by pre-downloading TPC/Config/RunInfoV2 before launching multi-process TPC digitization procedures. We can take the change back once a proper fix is available in O2-CCDB.
1 parent 4f1790c commit a361769

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

MC/bin/o2dpg_sim_workflow.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,8 @@ def putConfigValuesNew(listOfMainKeys=[], localCF = {}):
10011001
TPCDigitask=createTask(name='tpcdigi_'+str(tf), needs=tpcdigineeds,
10021002
tf=tf, cwd=timeframeworkdir, lab=["DIGI"], cpu=NWORKERS_TF, mem=str(tpcdigimem))
10031003
TPCDigitask['cmd'] = ('','ln -nfs ../bkg_HitsTPC.root . ;')[doembedding]
1004+
TPCDigitask['cmd'] += '${O2_ROOT}/bin/o2-ccdb-downloadccdbfile --host http://alice-ccdb.cern.ch -p TPC/Config/RunInfoV2 --timestamp ' \
1005+
+ str(args.timestamp) + ' --created-not-after ' + str(args.condition_not_after) + ' -d ${ALICEO2_CCDB_LOCALCACHE} ; '
10041006
TPCDigitask['cmd'] += '${O2_ROOT}/bin/o2-sim-digitizer-workflow ' + getDPL_global_options() + ' -n ' + str(args.ns) + simsoption \
10051007
+ ' --onlyDet TPC --TPCuseCCDB --interactionRate ' + str(INTRATE) + ' --tpc-lanes ' + str(NWORKERS_TF) \
10061008
+ ' --incontext ' + str(CONTEXTFILE) + ' --disable-write-ini --early-forward-policy always --forceSelectedDets ' \

0 commit comments

Comments
 (0)