Skip to content

Commit e8fb89b

Browse files
authored
Merge 92453a5 into sapling-pr-archive-ktf
2 parents 8ac507c + 92453a5 commit e8fb89b

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

Detectors/TRD/calibration/src/DCSProcessor.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ bool DCSProcessor::updateGasDPsCCDB()
382382
}
383383
std::map<std::string, std::string> md;
384384
md["responsible"] = "Ole Schmidt";
385-
o2::calibration::Utils::prepareCCDBobjectInfo(mTRDDCSGas, mCcdbGasDPsInfo, "TRD/Calib/DCSDPsGas", md, mGasStartTS, mGasStartTS + 3 * o2::ccdb::CcdbObjectInfo::DAY);
385+
o2::calibration::Utils::prepareCCDBobjectInfo(mTRDDCSGas, mCcdbGasDPsInfo, "TRD/Calib/DCSDPsGas", md, mGasStartTS, mCurrentTS + 14 * o2::ccdb::CcdbObjectInfo::DAY);
386386

387387
return retVal;
388388
}
@@ -410,7 +410,7 @@ bool DCSProcessor::updateCurrentsDPsCCDB()
410410
}
411411
std::map<std::string, std::string> md;
412412
md["responsible"] = "Ole Schmidt";
413-
o2::calibration::Utils::prepareCCDBobjectInfo(mTRDDCSCurrents, mCcdbCurrentsDPsInfo, "TRD/Calib/DCSDPsI", md, mCurrentsStartTS, mCurrentsStartTS + 3 * o2::ccdb::CcdbObjectInfo::DAY);
413+
o2::calibration::Utils::prepareCCDBobjectInfo(mTRDDCSCurrents, mCcdbCurrentsDPsInfo, "TRD/Calib/DCSDPsI", md, mCurrentsStartTS, mCurrentTS + 14 * o2::ccdb::CcdbObjectInfo::DAY);
414414

415415
return retVal;
416416
}
@@ -437,7 +437,7 @@ bool DCSProcessor::updateVoltagesDPsCCDB()
437437
}
438438
std::map<std::string, std::string> md;
439439
md["responsible"] = "Ole Schmidt";
440-
o2::calibration::Utils::prepareCCDBobjectInfo(mTRDDCSVoltages, mCcdbVoltagesDPsInfo, "TRD/Calib/DCSDPsU", md, mVoltagesStartTS, mVoltagesStartTS + 7 * o2::ccdb::CcdbObjectInfo::DAY);
440+
o2::calibration::Utils::prepareCCDBobjectInfo(mTRDDCSVoltages, mCcdbVoltagesDPsInfo, "TRD/Calib/DCSDPsU", md, mVoltagesStartTS, mCurrentTS + 14 * o2::ccdb::CcdbObjectInfo::DAY);
441441

442442
return retVal;
443443
}
@@ -465,7 +465,7 @@ bool DCSProcessor::updateEnvDPsCCDB()
465465
}
466466
std::map<std::string, std::string> md;
467467
md["responsible"] = "Leonardo Barreto";
468-
o2::calibration::Utils::prepareCCDBobjectInfo(mTRDDCSEnv, mCcdbEnvDPsInfo, "TRD/Calib/DCSDPsEnv", md, mEnvStartTS, mEnvStartTS + 3 * o2::ccdb::CcdbObjectInfo::DAY);
468+
o2::calibration::Utils::prepareCCDBobjectInfo(mTRDDCSEnv, mCcdbEnvDPsInfo, "TRD/Calib/DCSDPsEnv", md, mEnvStartTS, mCurrentTS + 14 * o2::ccdb::CcdbObjectInfo::DAY);
469469

470470
return retVal;
471471
}
@@ -498,7 +498,7 @@ bool DCSProcessor::updateFedChamberStatusDPsCCDB()
498498
// LB: set start timestamp 30000 miliseconds before DPs are received
499499
o2::calibration::Utils::prepareCCDBobjectInfo(mTRDDCSFedChamberStatus, mCcdbFedChamberStatusDPsInfo,
500500
"TRD/Calib/DCSDPsFedChamberStatus", md, mFedChamberStatusStartTS - 30000,
501-
mFedChamberStatusStartTS + 3 * o2::ccdb::CcdbObjectInfo::DAY);
501+
mCurrentTS + 14 * o2::ccdb::CcdbObjectInfo::DAY);
502502

503503
return retVal;
504504
}
@@ -531,7 +531,7 @@ bool DCSProcessor::updateFedCFGtagDPsCCDB()
531531
// LB: set start timestamp 30000 seconds before DPs are received
532532
o2::calibration::Utils::prepareCCDBobjectInfo(mTRDDCSFedCFGtag, mCcdbFedCFGtagDPsInfo,
533533
"TRD/Calib/DCSDPsFedCFGtag", md, mFedCFGtagStartTS - 30000,
534-
mFedCFGtagStartTS + 3 * o2::ccdb::CcdbObjectInfo::DAY);
534+
mCurrentTS + 14 * o2::ccdb::CcdbObjectInfo::DAY);
535535

536536
return retVal;
537537
}

Framework/Core/src/DataAllocator.cxx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,11 @@ void DataAllocator::adopt(const Output& spec, LifetimeHolder<FragmentToBatch>& f
264264
// get rid of the intermediate tree 2 table object, saving memory.
265265
auto batch = source.finalize();
266266
if (!batch) {
267-
throw std::runtime_error("FragmentToBatch::finalize() returned null RecordBatch");
267+
// Do not throw here: this callback runs from ~LifetimeHolder which may
268+
// execute during stack unwinding (e.g. if fill() failed). Throwing during
269+
// unwinding calls std::terminate.
270+
LOG(error) << "FragmentToBatch::finalize() returned null RecordBatch, skipping serialization";
271+
return;
268272
}
269273
auto mock = std::make_shared<arrow::io::MockOutputStream>();
270274
int64_t expectedSize = 0;

0 commit comments

Comments
 (0)