You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-1694 & MCOL-1505 Improved exception handling
This patch catches exceptions in DDLProc, DMLProc and ExeMgr which could potentially happen during startup. Logging them instead of silently ignoring them (or crashing in ExeMgr).
This commit is contained in:
@ -1155,8 +1155,28 @@ void DMLServer::start()
|
||||
}
|
||||
cancelThread.join();
|
||||
}
|
||||
catch (std::exception& ex)
|
||||
{
|
||||
cerr << ex.what() << endl;
|
||||
logging::LoggingID lid(21);
|
||||
Message::Args args;
|
||||
Message message(8);
|
||||
args.add("DMLProc init caught exception: ");
|
||||
args.add(ex.what());
|
||||
message.format(args);
|
||||
logging::Logger logger(lid.fSubsysID);
|
||||
logger.logMessage(logging::LOG_TYPE_CRITICAL, message, lid);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
cerr << "Caught unknown exception!" << endl;
|
||||
logging::LoggingID lid(21);
|
||||
Message::Args args;
|
||||
Message message(8);
|
||||
args.add("DMLProc init caught unknown exception");
|
||||
message.format(args);
|
||||
logging::Logger logger(lid.fSubsysID);
|
||||
logger.logMessage(logging::LOG_TYPE_CRITICAL, message, lid);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user