Skip to content
Snippets Groups Projects
Commit d8de3ca5 authored by Steven Murray's avatar Steven Murray
Browse files

cta/CTA#186 CTA should cope with idle database connections being dropped by the database server

Corrected handling of LostDatabaseConnection exceptions within OracleCatalogue
parent af446c06
Branches
Tags
No related merge requests found
...@@ -328,6 +328,8 @@ void OracleCatalogue::deleteArchiveFileInternal(const std::string &diskInstanceN ...@@ -328,6 +328,8 @@ void OracleCatalogue::deleteArchiveFileInternal(const std::string &diskInstanceN
spc.add("TAPE FILE", tapeCopyLogStream.str()); spc.add("TAPE FILE", tapeCopyLogStream.str());
} }
lc.log(log::INFO, "Archive file deleted from CTA catalogue"); lc.log(log::INFO, "Archive file deleted from CTA catalogue");
} catch(exception::LostDatabaseConnection &le) {
throw exception::LostDatabaseConnection(std::string(__FUNCTION__) + " failed: " + le.getMessage().str());
} catch(exception::UserError &) { } catch(exception::UserError &) {
throw; throw;
} catch(exception::Exception &ex) { } catch(exception::Exception &ex) {
...@@ -487,6 +489,8 @@ void OracleCatalogue::deleteArchiveFileByDiskFileIdInternal(const std::string &d ...@@ -487,6 +489,8 @@ void OracleCatalogue::deleteArchiveFileByDiskFileIdInternal(const std::string &d
spc.add("TAPE FILE", tapeCopyLogStream.str()); spc.add("TAPE FILE", tapeCopyLogStream.str());
} }
lc.log(log::INFO, "Archive file deleted from CTA catalogue"); lc.log(log::INFO, "Archive file deleted from CTA catalogue");
} catch(exception::LostDatabaseConnection &le) {
throw exception::LostDatabaseConnection(std::string(__FUNCTION__) + " failed: " + le.getMessage().str());
} catch(exception::UserError &) { } catch(exception::UserError &) {
throw; throw;
} catch(exception::Exception &ex) { } catch(exception::Exception &ex) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment