You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-11-24 08:41:09 +03:00
MCOL-1610: modify so if moving a dbroot fails with gluster it is reassigned to original owner. Add logging around failure for mounting gluster volumes.
This commit is contained in:
@@ -1574,7 +1574,7 @@ void pingDeviceThread()
|
||||
{
|
||||
// no dbroots, fail module
|
||||
log.writeLog(__LINE__, "autoUnMovePmDbroot left no dbroots mounted, failing module restart: " + moduleName, LOG_TYPE_WARNING);
|
||||
|
||||
|
||||
//Issue an alarm
|
||||
aManager.sendAlarmReport(moduleName.c_str(), MODULE_DOWN_AUTO, SET);
|
||||
|
||||
@@ -1597,7 +1597,7 @@ void pingDeviceThread()
|
||||
//set query system state ready
|
||||
processManager.setQuerySystemState(true);
|
||||
|
||||
break;
|
||||
goto break_case;
|
||||
}
|
||||
}
|
||||
catch(...)
|
||||
@@ -1619,25 +1619,24 @@ void pingDeviceThread()
|
||||
if ( retry == 5 )
|
||||
{
|
||||
log.writeLog(__LINE__, "autoUnMovePmDbroot: Failed. Fail Module", LOG_TYPE_WARNING);
|
||||
|
||||
log.writeLog(__LINE__, "System DBRM READ ONLY - Verify dbroot mounts.", LOG_TYPE_WARNING);
|
||||
//Issue an alarm
|
||||
aManager.sendAlarmReport(moduleName.c_str(), MODULE_DOWN_AUTO, SET);
|
||||
|
||||
//set module to disable state
|
||||
processManager.disableModule(moduleName, true);
|
||||
|
||||
// Need to do something here to verify data mounts before resuming
|
||||
// Best to assume if we reach this you need to put into readonly and verify all dbroots are mounted
|
||||
|
||||
//call dbrm control
|
||||
oam.dbrmctl("reload");
|
||||
log.writeLog(__LINE__, "'dbrmctl reload' done", LOG_TYPE_DEBUG);
|
||||
|
||||
// resume the dbrm
|
||||
oam.dbrmctl("resume");
|
||||
log.writeLog(__LINE__, "'dbrmctl resume' done", LOG_TYPE_DEBUG);
|
||||
oam.dbrmctl("readonly");
|
||||
log.writeLog(__LINE__, "'dbrmctl readonly' done", LOG_TYPE_DEBUG);
|
||||
|
||||
//clear count
|
||||
moduleInfoList[moduleName] = 0;
|
||||
|
||||
processManager.setSystemState(oam::ACTIVE);
|
||||
processManager.setSystemState(oam::DEGRADED);
|
||||
|
||||
//set query system state ready
|
||||
processManager.setQuerySystemState(true);
|
||||
@@ -2358,6 +2357,7 @@ void pingDeviceThread()
|
||||
}
|
||||
} //end of for loop
|
||||
}
|
||||
break_case:
|
||||
|
||||
// check and take action if LAN outage is flagged
|
||||
if (LANOUTAGESUPPORT && !LANOUTAGEACTIVE && LOCALNICDOWN)
|
||||
|
||||
Reference in New Issue
Block a user