1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +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:
Andrew Hutchings
2017-02-21 21:10:57 +00:00
parent 788ffd3149
commit 80b4d7ee36
3 changed files with 82 additions and 32 deletions

View File

@ -297,24 +297,36 @@ int main(int argc, char* argv[])
mlp = new primitiveprocessor::Logger();
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;
mlp->logMessage(errMsg);
cerr << errMsg << endl;
try
{
oam.processInitFailure();
}
catch (...)
{
}
return 2;
}
int serverThreads = 1;
int serverQueueSize = 10;