You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-07 03:22:57 +03:00
add check of service status before sending to procmon
This commit is contained in:
@@ -1371,7 +1371,7 @@ namespace oam
|
|||||||
string cmd = startup::StartUp::installDir() + "/bin/columnstore status > /tmp/status.log";
|
string cmd = startup::StartUp::installDir() + "/bin/columnstore status > /tmp/status.log";
|
||||||
system(cmd.c_str());
|
system(cmd.c_str());
|
||||||
if (!checkLogStatus("/tmp/status.log", "MariaDB Columnstore is running") )
|
if (!checkLogStatus("/tmp/status.log", "MariaDB Columnstore is running") )
|
||||||
return API_CONN_REFUSED;
|
return;
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
// TODO: Remove when we create OAM for Windows
|
// TODO: Remove when we create OAM for Windows
|
||||||
@@ -2093,7 +2093,7 @@ namespace oam
|
|||||||
string cmd = startup::StartUp::installDir() + "/bin/columnstore status > /tmp/status.log";
|
string cmd = startup::StartUp::installDir() + "/bin/columnstore status > /tmp/status.log";
|
||||||
system(cmd.c_str());
|
system(cmd.c_str());
|
||||||
if (!checkLogStatus("/tmp/status.log", "MariaDB Columnstore is running") )
|
if (!checkLogStatus("/tmp/status.log", "MariaDB Columnstore is running") )
|
||||||
return API_CONN_REFUSED;
|
return;
|
||||||
|
|
||||||
ProcessStatus processstatus;
|
ProcessStatus processstatus;
|
||||||
systemprocessstatus.processstatus.clear();
|
systemprocessstatus.processstatus.clear();
|
||||||
@@ -2196,12 +2196,7 @@ namespace oam
|
|||||||
string cmd = startup::StartUp::installDir() + "/bin/columnstore status > /tmp/status.log";
|
string cmd = startup::StartUp::installDir() + "/bin/columnstore status > /tmp/status.log";
|
||||||
system(cmd.c_str());
|
system(cmd.c_str());
|
||||||
if (!checkLogStatus("/tmp/status.log", "MariaDB Columnstore is running") )
|
if (!checkLogStatus("/tmp/status.log", "MariaDB Columnstore is running") )
|
||||||
return API_CONN_REFUSED;
|
return;
|
||||||
|
|
||||||
string cmd = startup::StartUp::installDir() + "/bin/columnstore status > /tmp/status.log";
|
|
||||||
system(cmd.c_str());
|
|
||||||
if (!checkLogStatus("/tmp/status.log", "MariaDB Columnstore is running") )
|
|
||||||
return API_CONN_REFUSED;
|
|
||||||
|
|
||||||
for ( int i = 0 ; i < 5 ; i ++)
|
for ( int i = 0 ; i < 5 ; i ++)
|
||||||
{
|
{
|
||||||
@@ -2299,7 +2294,7 @@ namespace oam
|
|||||||
string cmd = startup::StartUp::installDir() + "/bin/columnstore status > /tmp/status.log";
|
string cmd = startup::StartUp::installDir() + "/bin/columnstore status > /tmp/status.log";
|
||||||
system(cmd.c_str());
|
system(cmd.c_str());
|
||||||
if (!checkLogStatus("/tmp/status.log", "MariaDB Columnstore is running") )
|
if (!checkLogStatus("/tmp/status.log", "MariaDB Columnstore is running") )
|
||||||
return API_CONN_REFUSED;
|
return;
|
||||||
|
|
||||||
//send and wait for ack and resend if not received
|
//send and wait for ack and resend if not received
|
||||||
//retry 5 time max
|
//retry 5 time max
|
||||||
@@ -2819,7 +2814,7 @@ namespace oam
|
|||||||
string cmd = startup::StartUp::installDir() + "/bin/columnstore status > /tmp/status.log";
|
string cmd = startup::StartUp::installDir() + "/bin/columnstore status > /tmp/status.log";
|
||||||
system(cmd.c_str());
|
system(cmd.c_str());
|
||||||
if (!checkLogStatus("/tmp/status.log", "MariaDB Columnstore is running") )
|
if (!checkLogStatus("/tmp/status.log", "MariaDB Columnstore is running") )
|
||||||
return API_CONN_REFUSED;
|
return;
|
||||||
|
|
||||||
for ( int i = 0 ; i < 5 ; i ++)
|
for ( int i = 0 ; i < 5 ; i ++)
|
||||||
{
|
{
|
||||||
@@ -4828,7 +4823,7 @@ namespace oam
|
|||||||
string cmd = startup::StartUp::installDir() + "/bin/columnstore status > /tmp/status.log";
|
string cmd = startup::StartUp::installDir() + "/bin/columnstore status > /tmp/status.log";
|
||||||
system(cmd.c_str());
|
system(cmd.c_str());
|
||||||
if (!checkLogStatus("/tmp/status.log", "MariaDB Columnstore is running") )
|
if (!checkLogStatus("/tmp/status.log", "MariaDB Columnstore is running") )
|
||||||
return API_CONN_REFUSED;
|
return false;
|
||||||
|
|
||||||
int returnStatus;
|
int returnStatus;
|
||||||
// We assume that moduleName is a valid pm
|
// We assume that moduleName is a valid pm
|
||||||
@@ -9246,7 +9241,7 @@ namespace oam
|
|||||||
string cmd = startup::StartUp::installDir() + "/bin/columnstore status > /tmp/status.log";
|
string cmd = startup::StartUp::installDir() + "/bin/columnstore status > /tmp/status.log";
|
||||||
system(cmd.c_str());
|
system(cmd.c_str());
|
||||||
if (!checkLogStatus("/tmp/status.log", "MariaDB Columnstore is running") )
|
if (!checkLogStatus("/tmp/status.log", "MariaDB Columnstore is running") )
|
||||||
return API_CONN_REFUSED;
|
return;
|
||||||
|
|
||||||
for ( int i = 0 ; i < 5 ; i ++)
|
for ( int i = 0 ; i < 5 ; i ++)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user