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-4193: Delete unused OAM and applications, ProcMon, ProcMgr, and no longer build all tools for packages
This commit is contained in:
@ -52,8 +52,6 @@ using namespace config;
|
||||
using namespace logging;
|
||||
|
||||
#include "liboamcpp.h"
|
||||
#include "alarmmanager.h"
|
||||
using namespace alarmmanager;
|
||||
using namespace oam;
|
||||
|
||||
#include "we_clients.h"
|
||||
@ -415,13 +413,6 @@ Error:
|
||||
|
||||
itor++;
|
||||
}
|
||||
|
||||
// send alarm
|
||||
ALARMManager alarmMgr;
|
||||
// string alarmItem = sin_addr2String(client->serv_addr().sin_addr);
|
||||
string alarmItem = client->addr2String();
|
||||
alarmItem.append(" WriteEngineServer");
|
||||
alarmMgr.sendAlarmReport(alarmItem.c_str(), oam::CONN_FAILURE, SET);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
@ -187,21 +187,6 @@ void ServiceWriteEngine::setupChildSignalHandlers()
|
||||
|
||||
int ServiceWriteEngine::Child()
|
||||
{
|
||||
|
||||
//set BUSY_INIT state
|
||||
{
|
||||
// Is there a reason to have a seperate Oam instance for this?
|
||||
Oam oam;
|
||||
|
||||
try
|
||||
{
|
||||
oam.processInitComplete("WriteEngineServer", oam::BUSY_INIT);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
setupChildSignalHandlers();
|
||||
|
||||
// Init WriteEngine Wrapper (including Config Columnstore.xml cache)
|
||||
@ -246,16 +231,6 @@ int ServiceWriteEngine::Child()
|
||||
}
|
||||
else
|
||||
{
|
||||
Oam oam;
|
||||
|
||||
try // Get out of BUSYINIT state; else OAM will not retry
|
||||
{
|
||||
oam.processInitComplete("WriteEngineServer");
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
}
|
||||
|
||||
// If/when a common logging class or function is added to the
|
||||
// WriteEngineServer, we should use that. In the mean time,
|
||||
// I will log this errmsg with inline calls to the logging.
|
||||
@ -310,14 +285,6 @@ int ServiceWriteEngine::Child()
|
||||
ml.logCriticalMessage( message );
|
||||
cerr << errMsg << endl;
|
||||
|
||||
try
|
||||
{
|
||||
oam.processInitFailure();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
}
|
||||
|
||||
NotifyServiceInitializationFailed();
|
||||
return 2;
|
||||
}
|
||||
@ -328,18 +295,6 @@ int ServiceWriteEngine::Child()
|
||||
size_t qs = mt * 100;
|
||||
ThreadPool tp(mt, qs);
|
||||
|
||||
//set ACTIVE state
|
||||
{
|
||||
Oam oam;
|
||||
|
||||
try
|
||||
{
|
||||
oam.processInitComplete("WriteEngineServer", ACTIVE);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
}
|
||||
}
|
||||
cout << "WriteEngineServer is ready" << endl;
|
||||
NotifyServiceStarted();
|
||||
|
||||
|
@ -49,9 +49,6 @@ using namespace config;
|
||||
|
||||
//-----
|
||||
|
||||
#include "alarmmanager.h"
|
||||
using namespace alarmmanager;
|
||||
|
||||
#include "messagequeue.h"
|
||||
#include "bytestream.h"
|
||||
using namespace messageqcpp;
|
||||
|
@ -50,9 +50,6 @@ using namespace messageqcpp;
|
||||
#include "liboamcpp.h"
|
||||
using namespace oam;
|
||||
|
||||
#include "alarmmanager.h"
|
||||
using namespace alarmmanager;
|
||||
|
||||
#include "we_sdhandler.h"
|
||||
#include "we_splclient.h"
|
||||
|
||||
@ -428,12 +425,12 @@ void WESplClient::onDisconnect()
|
||||
|
||||
try
|
||||
{
|
||||
// send alarm
|
||||
ALARMManager alarmMgr;
|
||||
// BT Should log this probably instead
|
||||
// ALARMManager alarmMgr;
|
||||
//std::string alarmItem = sin_addr2String(fClnt->serv_addr().sin_addr);
|
||||
std::string alarmItem = fClnt->addr2String();
|
||||
alarmItem.append(" WriteEngineServer");
|
||||
alarmMgr.sendAlarmReport(alarmItem.c_str(), oam::CONN_FAILURE, SET);
|
||||
//alarmMgr.sendAlarmReport(alarmItem.c_str(), oam::CONN_FAILURE, SET);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
|
Reference in New Issue
Block a user