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-553 Improve error handling for ulimit
Now sends an error to the error log and aborts postConfigure
This commit is contained in:
@ -1345,25 +1345,44 @@ int main(int argc, char* argv[])
|
||||
#endif
|
||||
setupSignalHandlers();
|
||||
int err = setupResources();
|
||||
string errMsg;
|
||||
switch (err)
|
||||
{
|
||||
case -1:
|
||||
case -3:
|
||||
cerr << "Error getting file limits, please see non-root install documentation" << endl;
|
||||
return -1;
|
||||
errMsg = "Error getting file limits, please see non-root install documentation";
|
||||
break;
|
||||
case -2:
|
||||
cerr << "Error setting file limits, please see non-root install documentation" << endl;
|
||||
return -1;
|
||||
errMsg = "Error setting file limits, please see non-root install documentation";
|
||||
break;
|
||||
case -4:
|
||||
cerr << "Could not install file limits to required value, please see non-root install documentation" << endl;
|
||||
return -1;
|
||||
errMsg = "Could not install file limits to required value, please see non-root install documentation";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (err < 0)
|
||||
{
|
||||
Oam oam;
|
||||
logging::Message::Args args;
|
||||
logging::Message message;
|
||||
args.add( errMsg );
|
||||
message.format(args);
|
||||
logging::LoggingID lid(16);
|
||||
logging::MessageLog ml(lid);
|
||||
ml.logCriticalMessage( message );
|
||||
cerr << errMsg << endl;
|
||||
try
|
||||
{
|
||||
oam.processInitFailure();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
}
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
setupCwd(rm);
|
||||
|
||||
|
Reference in New Issue
Block a user