Commit f69df258 authored by David COME's avatar David COME
Browse files

Added a few comments in TapeWriteTask about why throwing again the exception

parent f97a73dd
......@@ -110,6 +110,9 @@ namespace daemon {
lc.log(LOG_INFO,"TapeWriteTask: a previous file has failed for migration "
"Do nothing except circulating blocks");
circulateMemBlocks();
//we throw again because we want TWST to stop all tasks from execution
//and go into a degraded mode operation.
throw;
}
catch(const castor::exception::Exception& e){
......@@ -127,6 +130,9 @@ namespace daemon {
lc.log(LOG_ERR,"Circulating blocks into TapeWriteTask::execute");
circulateMemBlocks();
reportPacker.reportFailedJob(*m_fileToMigrate,e.getMessageValue(),e.code());
//we throw again because we want TWST to stop all tasks from execution
//and go into a degraded mode operation.
throw;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment