You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-10-31 18:30:33 +03:00
MCOL-770 - changes to handle non-distrubuted negitive test cases
This commit is contained in:
@@ -575,6 +575,10 @@ static void startMgrProcessThread()
|
|||||||
DeviceNetworkList::iterator pt = systemmoduletypeconfig.moduletypeconfig[i].ModuleNetworkList.begin();
|
DeviceNetworkList::iterator pt = systemmoduletypeconfig.moduletypeconfig[i].ModuleNetworkList.begin();
|
||||||
for ( ; pt != systemmoduletypeconfig.moduletypeconfig[i].ModuleNetworkList.end(); pt++)
|
for ( ; pt != systemmoduletypeconfig.moduletypeconfig[i].ModuleNetworkList.end(); pt++)
|
||||||
{
|
{
|
||||||
|
//skip OAM Parent module
|
||||||
|
if ( (*pt).DeviceName == config.moduleName() )
|
||||||
|
continue;
|
||||||
|
|
||||||
HostConfigList::iterator pt1 = (*pt).hostConfigList.begin();
|
HostConfigList::iterator pt1 = (*pt).hostConfigList.begin();
|
||||||
for( ; pt1 != (*pt).hostConfigList.end() ; pt1++)
|
for( ; pt1 != (*pt).hostConfigList.end() ; pt1++)
|
||||||
{
|
{
|
||||||
@@ -590,7 +594,7 @@ static void startMgrProcessThread()
|
|||||||
{
|
{
|
||||||
int status = API_SUCCESS;
|
int status = API_SUCCESS;
|
||||||
int k = 0;
|
int k = 0;
|
||||||
for( ; k < 180 ; k++ )
|
for( ; k < 30 ; k++ )
|
||||||
{
|
{
|
||||||
if ( startsystemthreadStop ) {
|
if ( startsystemthreadStop ) {
|
||||||
processManager.setSystemState(oam::MAN_OFFLINE);
|
processManager.setSystemState(oam::MAN_OFFLINE);
|
||||||
@@ -611,6 +615,11 @@ static void startMgrProcessThread()
|
|||||||
for ( ; pt != systemmoduletypeconfig.moduletypeconfig[i].ModuleNetworkList.end(); pt++)
|
for ( ; pt != systemmoduletypeconfig.moduletypeconfig[i].ModuleNetworkList.end(); pt++)
|
||||||
{
|
{
|
||||||
string moduleName = (*pt).DeviceName;
|
string moduleName = (*pt).DeviceName;
|
||||||
|
|
||||||
|
//skip OAM Parent module
|
||||||
|
if ( (*pt).DeviceName == config.moduleName() )
|
||||||
|
continue;
|
||||||
|
|
||||||
if ( (*pt).DisableState == oam::MANDISABLEDSTATE ||
|
if ( (*pt).DisableState == oam::MANDISABLEDSTATE ||
|
||||||
(*pt).DisableState == oam::AUTODISABLEDSTATE )
|
(*pt).DisableState == oam::AUTODISABLEDSTATE )
|
||||||
continue;
|
continue;
|
||||||
@@ -629,7 +638,7 @@ static void startMgrProcessThread()
|
|||||||
sleep(1);
|
sleep(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( k == 180 || status == API_FAILURE) {
|
if ( k == 30 || status == API_FAILURE) {
|
||||||
// system didn't successfull restart
|
// system didn't successfull restart
|
||||||
processManager.setSystemState(oam::FAILED);
|
processManager.setSystemState(oam::FAILED);
|
||||||
// exit thread
|
// exit thread
|
||||||
@@ -641,7 +650,7 @@ static void startMgrProcessThread()
|
|||||||
|
|
||||||
//wait until all modules are up after a system reboot
|
//wait until all modules are up after a system reboot
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for( ; i < 100 ; i++ )
|
for( ; i < 60 ; i++ )
|
||||||
{
|
{
|
||||||
if ( startsystemthreadStop ) {
|
if ( startsystemthreadStop ) {
|
||||||
processManager.setSystemState(oam::MAN_OFFLINE);
|
processManager.setSystemState(oam::MAN_OFFLINE);
|
||||||
@@ -707,7 +716,7 @@ static void startMgrProcessThread()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( i == 100 ) {
|
if ( i == 60 ) {
|
||||||
// system didn't successfull restart
|
// system didn't successfull restart
|
||||||
processManager.setSystemState(oam::FAILED);
|
processManager.setSystemState(oam::FAILED);
|
||||||
|
|
||||||
@@ -726,7 +735,7 @@ static void startMgrProcessThread()
|
|||||||
//now wait until all procmons are ACTIVE and validate rpms on each module
|
//now wait until all procmons are ACTIVE and validate rpms on each module
|
||||||
int status = API_SUCCESS;
|
int status = API_SUCCESS;
|
||||||
int k = 0;
|
int k = 0;
|
||||||
for( ; k < 180 ; k++ )
|
for( ; k < 60 ; k++ )
|
||||||
{
|
{
|
||||||
if ( startsystemthreadStop ) {
|
if ( startsystemthreadStop ) {
|
||||||
processManager.setSystemState(oam::MAN_OFFLINE);
|
processManager.setSystemState(oam::MAN_OFFLINE);
|
||||||
@@ -802,6 +811,10 @@ static void startMgrProcessThread()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//skip OAM Parent module
|
||||||
|
if ( moduleName == config.moduleName() )
|
||||||
|
continue;
|
||||||
|
|
||||||
//ProcMon ACTIVE, validate the software release and version of that module
|
//ProcMon ACTIVE, validate the software release and version of that module
|
||||||
ByteStream msg;
|
ByteStream msg;
|
||||||
ByteStream::byte requestID = GETSOFTWAREINFO;
|
ByteStream::byte requestID = GETSOFTWAREINFO;
|
||||||
@@ -814,7 +827,7 @@ static void startMgrProcessThread()
|
|||||||
if ( localSoftwareInfo != moduleSoftwareInfo ) {
|
if ( localSoftwareInfo != moduleSoftwareInfo ) {
|
||||||
// module not running on same Calpont Software build as this local Director
|
// module not running on same Calpont Software build as this local Director
|
||||||
// alarm and fail the module
|
// alarm and fail the module
|
||||||
log.writeLog(__LINE__, "Software Info mismatch : " + moduleName + "/" + localSoftwareInfo + "/" + moduleSoftwareInfo, LOG_TYPE_ERROR);
|
log.writeLog(__LINE__, "Software Version mismatch : " + moduleName + "/" + localSoftwareInfo + "/" + moduleSoftwareInfo, LOG_TYPE_CRITICAL);
|
||||||
|
|
||||||
aManager.sendAlarmReport(moduleName.c_str(), INVALID_SW_VERSION, SET);
|
aManager.sendAlarmReport(moduleName.c_str(), INVALID_SW_VERSION, SET);
|
||||||
processManager.setModuleState(moduleName, oam::FAILED);
|
processManager.setModuleState(moduleName, oam::FAILED);
|
||||||
@@ -843,7 +856,7 @@ static void startMgrProcessThread()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( k == 180 || status == API_FAILURE) {
|
if ( k == 60 || status == API_FAILURE) {
|
||||||
// system didn't successfull restart
|
// system didn't successfull restart
|
||||||
processManager.setSystemState(oam::FAILED);
|
processManager.setSystemState(oam::FAILED);
|
||||||
// exit thread
|
// exit thread
|
||||||
|
|||||||
Reference in New Issue
Block a user