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
Cleaned up the hacks made so far.
This commit is contained in:
@ -575,11 +575,6 @@ void ProcessMonitor::processMessage(messageqcpp::ByteStream msg, messageqcpp::IO
|
||||
|
||||
break;
|
||||
}
|
||||
if (processName == "StorageManager") // storagemanager doesn't send its own response
|
||||
{
|
||||
//ackMsg << (uint8_t) ACK << (uint8_t) START << (uint8_t) API_SUCCESS;
|
||||
//mq.write(ackMsg);
|
||||
}
|
||||
|
||||
ProcessConfig processconfig;
|
||||
ProcessStatus processstatus;
|
||||
@ -663,6 +658,9 @@ void ProcessMonitor::processMessage(messageqcpp::ByteStream msg, messageqcpp::IO
|
||||
processconfig.LogFile,
|
||||
initType,
|
||||
actIndicator);
|
||||
|
||||
// StorageManager doesn't send the "I'm online" msg to Proc*.
|
||||
// Just mark it active for now. TODO: make it use the ping fcn in IDB* instead.
|
||||
if (processconfig.ProcessName == "StorageManager")
|
||||
{
|
||||
log.writeLog(__LINE__, "StorageManager WTF? 6", LOG_TYPE_DEBUG);
|
||||
@ -714,11 +712,6 @@ void ProcessMonitor::processMessage(messageqcpp::ByteStream msg, messageqcpp::IO
|
||||
|
||||
break;
|
||||
}
|
||||
if (processName == "StorageManager") // storagemanager doesn't send its own response
|
||||
{
|
||||
//ackMsg << (uint8_t) ACK << (uint8_t) RESTART << (uint8_t) API_SUCCESS;
|
||||
// mq.write(ackMsg);
|
||||
}
|
||||
|
||||
processList::iterator listPtr;
|
||||
processList* aPtr = config.monitoredListPtr();
|
||||
@ -769,6 +762,9 @@ void ProcessMonitor::processMessage(messageqcpp::ByteStream msg, messageqcpp::IO
|
||||
(*listPtr).DepModuleName,
|
||||
(*listPtr).LogFile,
|
||||
initType);
|
||||
|
||||
// StorageManager doesn't send the "I'm online" msg to Proc*.
|
||||
// Just mark it active for now. TODO: make it use the ping fcn in IDB* instead.
|
||||
if (listPtr->ProcessName == "StorageManager")
|
||||
{
|
||||
log.writeLog(__LINE__, "StorageManager WTF? 7", LOG_TYPE_DEBUG);
|
||||
@ -1120,11 +1116,6 @@ void ProcessMonitor::processMessage(messageqcpp::ByteStream msg, messageqcpp::IO
|
||||
|
||||
break;
|
||||
}
|
||||
if (processName == "StorageManager") // storagemanager doesn't send its own status
|
||||
{
|
||||
//ackMsg << (uint8_t) ACK << (uint8_t) STARTALL << (uint8_t) API_SUCCESS;
|
||||
//mq.write(ackMsg);
|
||||
}
|
||||
|
||||
if ( config.moduleType() == "pm" )
|
||||
{
|
||||
@ -1219,6 +1210,9 @@ void ProcessMonitor::processMessage(messageqcpp::ByteStream msg, messageqcpp::IO
|
||||
(*listPtr).DepModuleName,
|
||||
(*listPtr).LogFile,
|
||||
initType);
|
||||
|
||||
// StorageManager doesn't send the "I'm online" msg to Proc*.
|
||||
// Just mark it active for now. TODO: make it use the ping fcn in IDB* instead.
|
||||
if (listPtr->ProcessName == "StorageManager")
|
||||
{
|
||||
log.writeLog(__LINE__, "StorageManager WTF? 4", LOG_TYPE_DEBUG);
|
||||
@ -1291,6 +1285,9 @@ void ProcessMonitor::processMessage(messageqcpp::ByteStream msg, messageqcpp::IO
|
||||
(*listPtr).DepModuleName,
|
||||
(*listPtr).LogFile,
|
||||
initType);
|
||||
|
||||
// StorageManager doesn't send the "I'm online" msg to Proc*.
|
||||
// Just mark it active for now. TODO: make it use the ping fcn in IDB* instead.
|
||||
if (listPtr->ProcessName == "StorageManager")
|
||||
{
|
||||
log.writeLog(__LINE__, "StorageManager WTF? 5", LOG_TYPE_DEBUG);
|
||||
@ -2269,8 +2266,8 @@ pid_t ProcessMonitor::startProcess(string processModuleType, string processName,
|
||||
SystemProcessStatus systemprocessstatus;
|
||||
ProcessStatus processstatus;
|
||||
|
||||
log.writeLog(__LINE__, "STARTING Process: " + processName, LOG_TYPE_CRITICAL); //, LOG_TYPE_DEBUG);
|
||||
log.writeLog(__LINE__, "Process location: " + processLocation, LOG_TYPE_CRITICAL); //, LOG_TYPE_DEBUG);
|
||||
log.writeLog(__LINE__, "STARTING Process: " + processName, LOG_TYPE_DEBUG);
|
||||
log.writeLog(__LINE__, "Process location: " + processLocation, LOG_TYPE_DEBUG);
|
||||
|
||||
//check process location
|
||||
if (access(processLocation.c_str(), X_OK) != 0)
|
||||
@ -2697,8 +2694,7 @@ pid_t ProcessMonitor::startProcess(string processModuleType, string processName,
|
||||
updateProcessInfo(processName, initType, 0);
|
||||
|
||||
//sleep, give time for INIT state to be update, prevent race condition with ACTIVE
|
||||
if (processName != "StorageManager")
|
||||
sleep(1);
|
||||
sleep(1);
|
||||
|
||||
//check and setup for logfile
|
||||
time_t now;
|
||||
@ -2853,16 +2849,9 @@ pid_t ProcessMonitor::startProcess(string processModuleType, string processName,
|
||||
}
|
||||
|
||||
//give time to get INIT status updated in shared memory
|
||||
if (processName != "StorageManager")
|
||||
sleep(1);
|
||||
sleep(1);
|
||||
execv(processLocation.c_str(), argList);
|
||||
|
||||
if (processName == "StorageManager")
|
||||
{
|
||||
char buf[80];
|
||||
int l_errno = errno;
|
||||
log.writeLog(__LINE__, "exec'ing StorageManager failed, got " + string(strerror_r(l_errno, buf, 80)), LOG_TYPE_DEBUG);
|
||||
}
|
||||
//record the process information into processList
|
||||
config.buildList(processModuleType, processName, processLocation, arg_list,
|
||||
launchID, newProcessID, FAILED, BootLaunch, RunType,
|
||||
@ -4825,7 +4814,6 @@ int ProcessMonitor::runHDFSTest()
|
||||
|
||||
ifstream File (DataFilePlugin.c_str());
|
||||
|
||||
#if 0 // for storagemanager
|
||||
if (!File)
|
||||
{
|
||||
log.writeLog(__LINE__, "Error: Hadoop Datafile Plugin File (" + DataFilePlugin + ") doesn't exist", LOG_TYPE_CRITICAL);
|
||||
@ -4859,7 +4847,6 @@ int ProcessMonitor::runHDFSTest()
|
||||
fail = true;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!fail)
|
||||
{
|
||||
|
Reference in New Issue
Block a user