You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
MCOL-4018 Disable legacy OAM by default.
This commit is contained in:
@ -294,24 +294,10 @@ extern "C"
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (getenv("SKIP_OAM_INIT"))
|
if (dbrm.getSystemReady()
|
||||||
|
&& dbrm.getSystemQueryReady())
|
||||||
{
|
{
|
||||||
if (dbrm.getSystemReady()
|
return 1;
|
||||||
&& dbrm.getSystemQueryReady())
|
|
||||||
{
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
oam.getSystemStatus(systemstatus);
|
|
||||||
|
|
||||||
if (systemstatus.SystemOpState == ACTIVE
|
|
||||||
&& dbrm.getSystemReady()
|
|
||||||
&& dbrm.getSystemQueryReady())
|
|
||||||
{
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
|
@ -1643,7 +1643,7 @@ int main(int argc, char* argv[])
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (getenv("SKIP_OAM_INIT"))
|
|
||||||
{
|
{
|
||||||
BRM::DBRM *dbrm = new BRM::DBRM();
|
BRM::DBRM *dbrm = new BRM::DBRM();
|
||||||
dbrm->setSystemQueryReady(true);
|
dbrm->setSystemQueryReady(true);
|
||||||
|
@ -2371,9 +2371,9 @@ void Oam::setProcessStatus(const std::string process, const std::string module,
|
|||||||
|
|
||||||
void Oam::processInitComplete(std::string processName, int state)
|
void Oam::processInitComplete(std::string processName, int state)
|
||||||
{
|
{
|
||||||
//This method takes too long on Windows and doesn't do anything there anyway...
|
//This method takes too long on Windows and doesn't do anything there anyway...
|
||||||
if (getenv("SKIP_OAM_INIT") != NULL)
|
// Disable legacy OAM
|
||||||
return;
|
return;
|
||||||
// get current Module name
|
// get current Module name
|
||||||
string moduleName;
|
string moduleName;
|
||||||
oamModuleInfo_t st;
|
oamModuleInfo_t st;
|
||||||
|
@ -111,6 +111,8 @@ void OamCache::checkReload()
|
|||||||
// Restore for Windows when we support multiple PMs
|
// Restore for Windows when we support multiple PMs
|
||||||
while (it != uniquePids.end())
|
while (it != uniquePids.end())
|
||||||
{
|
{
|
||||||
|
// Disable legacy-OAM.
|
||||||
|
/*
|
||||||
if (getenv("SKIP_OAM_INIT") == NULL)
|
if (getenv("SKIP_OAM_INIT") == NULL)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@ -182,6 +184,7 @@ void OamCache::checkReload()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
*/
|
||||||
{
|
{
|
||||||
pmToConnectionMap[*it] = i++;
|
pmToConnectionMap[*it] = i++;
|
||||||
moduleIds.push_back(*it);
|
moduleIds.push_back(*it);
|
||||||
|
@ -174,10 +174,8 @@ void setupSignalHandlers()
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
// print a warning if this is a developer build
|
|
||||||
if (getenv("SKIP_OAM_INIT"))
|
|
||||||
{
|
{
|
||||||
cout << "SKIP_OAM_INIT is set" << endl;
|
cout << "SKIP_OAM_INIT is set and legacy OAM is disabled by default" << endl;
|
||||||
sleep(2);
|
sleep(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -617,7 +617,8 @@ int RedistributeControlThread::executeRedistributePlan()
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// skip system status check in case no OAM
|
// skip system status check in case no OAM
|
||||||
|
/*
|
||||||
if (getenv("SKIP_OAM_INIT") == NULL)
|
if (getenv("SKIP_OAM_INIT") == NULL)
|
||||||
{
|
{
|
||||||
// make sure system is in active state
|
// make sure system is in active state
|
||||||
@ -646,6 +647,7 @@ int RedistributeControlThread::executeRedistributePlan()
|
|||||||
sleep(1);;
|
sleep(1);;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
if (fStopAction)
|
if (fStopAction)
|
||||||
return RED_EC_USER_STOP;
|
return RED_EC_USER_STOP;
|
||||||
|
@ -542,7 +542,7 @@ void WESDHandler::setup()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// getModuleStatus will take too long. Also to test in development
|
// getModuleStatus will take too long. Also to test in development
|
||||||
if (getenv("SKIP_OAM_INIT") == NULL)
|
/* if (getenv("SKIP_OAM_INIT") == NULL)
|
||||||
{
|
{
|
||||||
vector<unsigned int>& aVec = fRef.fCmdArgs.getPmVec();
|
vector<unsigned int>& aVec = fRef.fCmdArgs.getPmVec();
|
||||||
|
|
||||||
@ -573,6 +573,7 @@ void WESDHandler::setup()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
int rtn = fDbrm.getSystemReady();
|
int rtn = fDbrm.getSystemReady();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user