From 219faa7700b303ba3dec6dc7d2615161feefb3ef Mon Sep 17 00:00:00 2001 From: Oleg Kuprash <oleg.kuprash@cern.ch> Date: Thu, 11 May 2017 17:48:17 +0000 Subject: [PATCH] Merge branch '21.0_throw_fatal_trigconfRW_abort' into '21.0' TrigConfReadWrite application to return FATAL if metadata write fails (ATR-16103) See merge request !1608 --- .../TrigConfStorage/src/test/ReadWrite.cxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Trigger/TrigConfiguration/TrigConfStorage/src/test/ReadWrite.cxx b/Trigger/TrigConfiguration/TrigConfStorage/src/test/ReadWrite.cxx index 78465b2d6933..ce7596882dd7 100644 --- a/Trigger/TrigConfiguration/TrigConfStorage/src/test/ReadWrite.cxx +++ b/Trigger/TrigConfiguration/TrigConfStorage/src/test/ReadWrite.cxx @@ -678,10 +678,14 @@ int main( int argc, char* argv[] ) { if(ctpc) coolWriter->writeL1Payload(runNr, *ctpc); - - if(hltFrame) - coolWriter->writeHLTPayload(runNr, *hltFrame, configSource); - + try{ + if(hltFrame) + coolWriter->writeHLTPayload(runNr, *hltFrame, configSource); + } + catch(cool::StorageTypeStringTooLong e){ + log << "FATAL: Unable to write data to COOL"; + exit(1); + } if(mck) coolWriter->writeMCKPayload(runNr, mck, release, info); } -- GitLab