You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-30 14:21:11 +03:00
changes
This commit is contained in:
@@ -5,11 +5,11 @@ Summary: MariaDB-Columnstore software
|
|||||||
Name: mariadb-columnstore
|
Name: mariadb-columnstore
|
||||||
@@VERSION@@
|
@@VERSION@@
|
||||||
@@RELEASE@@
|
@@RELEASE@@
|
||||||
Vendor: MariaDB, Inc.
|
Vendor: MariaDB Corporation Ab
|
||||||
URL: http://www.mariadb.com/
|
URL: http://www.mariadb.com/
|
||||||
@@PACKAGER@@
|
@@PACKAGER@@
|
||||||
Group: Applications
|
Group: Applications
|
||||||
License: Copyright (c) 2016 MariaDB, Inc., all rights reserved; redistributable under the terms of the GPL, see the file COPYING for details.
|
License: Copyright (c) 2016 MariaDB Corporation Ab., all rights reserved; redistributable under the terms of the GPL, see the file COPYING for details.
|
||||||
BuildRoot: %{_tmppath}/%{name}.%{release}-buildroot
|
BuildRoot: %{_tmppath}/%{name}.%{release}-buildroot
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -35,7 +35,7 @@ MariaDB-Columnstore libraries
|
|||||||
Summary: InfiniDB Enterprise software binaries
|
Summary: InfiniDB Enterprise software binaries
|
||||||
Group: Applications
|
Group: Applications
|
||||||
Requires: mariadb-columnstore-libs, mariadb-columnstore-platform
|
Requires: mariadb-columnstore-libs, mariadb-columnstore-platform
|
||||||
License: Proprietary; Copyright (c) 2016 MariaDB, Inc., all rights reserved
|
License: Proprietary; Copyright (c) 2016 MariaDB Corporation Ab., all rights reserved
|
||||||
|
|
||||||
%description enterprise
|
%description enterprise
|
||||||
InfiniDB Enterprise binary files
|
InfiniDB Enterprise binary files
|
||||||
|
@@ -164,7 +164,7 @@ bool waitForStop()
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
void handleSigTerm(int i)
|
void handleSigTerm(int i)
|
||||||
{
|
{
|
||||||
std::cout << "Received SIGTERM to terminate MariDB Columnstore Console..." << std::endl;
|
std::cout << "Received SIGTERM to terminate MariaDB Columnstore Console..." << std::endl;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1876,7 +1876,7 @@ int processCommand(string* arguments)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
cout << endl << "This command stops the processing of applications on all Modules within the MariDB Columnstore System" << endl;
|
cout << endl << "This command stops the processing of applications on all Modules within the MariaDB Columnstore System" << endl;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -1993,7 +1993,7 @@ int processCommand(string* arguments)
|
|||||||
bool bDBRMReady = dbrm.isDBRMReady();
|
bool bDBRMReady = dbrm.isDBRMReady();
|
||||||
getFlags(arguments, gracefulTemp, ackTemp, suspendAnswer, bNeedsConfirm);
|
getFlags(arguments, gracefulTemp, ackTemp, suspendAnswer, bNeedsConfirm);
|
||||||
|
|
||||||
cout << endl << "This command stops the processing of applications on all Modules within the MariDB Columnstore System" << endl;
|
cout << endl << "This command stops the processing of applications on all Modules within the MariaDB Columnstore System" << endl;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -3314,7 +3314,7 @@ int processCommand(string* arguments)
|
|||||||
string configFileName;
|
string configFileName;
|
||||||
oam.getSystemConfig("SystemLogConfigFile", configFileName);
|
oam.getSystemConfig("SystemLogConfigFile", configFileName);
|
||||||
|
|
||||||
cout << endl << "MariDB Columnstore System Log Configuration Data" << endl << endl;
|
cout << endl << "MariaDB Columnstore System Log Configuration Data" << endl << endl;
|
||||||
|
|
||||||
cout << "System Logging Configuration File being used: " << configFileName << endl << endl;
|
cout << "System Logging Configuration File being used: " << configFileName << endl << endl;
|
||||||
|
|
||||||
@@ -3639,7 +3639,7 @@ int processCommand(string* arguments)
|
|||||||
BRM::DBRM dbrm;
|
BRM::DBRM dbrm;
|
||||||
getFlags(arguments, gracefulTemp, ackTemp, suspendAnswer, bNeedsConfirm);
|
getFlags(arguments, gracefulTemp, ackTemp, suspendAnswer, bNeedsConfirm);
|
||||||
|
|
||||||
cout << endl << "This command suspends the DDL/DML writes to the MariDB Columnstore Database" << endl;
|
cout << endl << "This command suspends the DDL/DML writes to the MariaDB Columnstore Database" << endl;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -3720,7 +3720,7 @@ int processCommand(string* arguments)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// stop writes to MariDB Columnstore Database
|
// stop writes to MariaDB Columnstore Database
|
||||||
oam.SuspendWrites(gracefulTemp, ackTemp);
|
oam.SuspendWrites(gracefulTemp, ackTemp);
|
||||||
}
|
}
|
||||||
catch (exception& e)
|
catch (exception& e)
|
||||||
@@ -3738,11 +3738,11 @@ int processCommand(string* arguments)
|
|||||||
case 33: // resumeDatabaseWrites
|
case 33: // resumeDatabaseWrites
|
||||||
{
|
{
|
||||||
if ( arguments[1] != "y" ) {
|
if ( arguments[1] != "y" ) {
|
||||||
if (confirmPrompt("This command resumes the DDL/DML writes to the MariDB Columnstore Database"))
|
if (confirmPrompt("This command resumes the DDL/DML writes to the MariaDB Columnstore Database"))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// resume writes to MariDB Columnstore Database
|
// resume writes to MariaDB Columnstore Database
|
||||||
|
|
||||||
try{
|
try{
|
||||||
SystemProcessStatus systemprocessstatus;
|
SystemProcessStatus systemprocessstatus;
|
||||||
@@ -3767,7 +3767,7 @@ int processCommand(string* arguments)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
oam.setSystemStatus(ACTIVE);
|
oam.setSystemStatus(ACTIVE);
|
||||||
cout << endl << "Resume MariDB Columnstore Database Writes Request successfully completed" << endl;
|
cout << endl << "Resume MariaDB Columnstore Database Writes Request successfully completed" << endl;
|
||||||
}
|
}
|
||||||
catch (exception& e)
|
catch (exception& e)
|
||||||
{
|
{
|
||||||
@@ -4331,7 +4331,7 @@ int processCommand(string* arguments)
|
|||||||
}
|
}
|
||||||
catch(...)
|
catch(...)
|
||||||
{
|
{
|
||||||
cout << "ERROR: Problem setting AmazonElasticModule in the MariDB Columnstore System Configuration file" << endl;
|
cout << "ERROR: Problem setting AmazonElasticModule in the MariaDB Columnstore System Configuration file" << endl;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4445,7 +4445,7 @@ int processCommand(string* arguments)
|
|||||||
}
|
}
|
||||||
catch(...)
|
catch(...)
|
||||||
{
|
{
|
||||||
cout << "ERROR: Problem setting AmazonElasticModule in the MariDB Columnstore System Configuration file" << endl;
|
cout << "ERROR: Problem setting AmazonElasticModule in the MariaDB Columnstore System Configuration file" << endl;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5452,7 +5452,7 @@ int processCommand(string* arguments)
|
|||||||
|
|
||||||
if ( arguments[3] != "y") {
|
if ( arguments[3] != "y") {
|
||||||
cout << endl << "!!!!! DESTRUCTIVE COMMAND !!!!!" << endl;
|
cout << endl << "!!!!! DESTRUCTIVE COMMAND !!!!!" << endl;
|
||||||
string warning = "This command does a remove a module from the MariDB Columnstore System";
|
string warning = "This command does a remove a module from the MariaDB Columnstore System";
|
||||||
// confirm request
|
// confirm request
|
||||||
if (confirmPrompt(warning))
|
if (confirmPrompt(warning))
|
||||||
break;
|
break;
|
||||||
@@ -5517,7 +5517,7 @@ int processCommand(string* arguments)
|
|||||||
|
|
||||||
if ( arguments[2] != "y") {
|
if ( arguments[2] != "y") {
|
||||||
cout << endl << "!!!!! DESTRUCTIVE COMMAND !!!!!" << endl;
|
cout << endl << "!!!!! DESTRUCTIVE COMMAND !!!!!" << endl;
|
||||||
string warning = "This command does a stop and remove a module from the MariDB Columnstore System";
|
string warning = "This command does a stop and remove a module from the MariaDB Columnstore System";
|
||||||
// confirm request
|
// confirm request
|
||||||
if (confirmPrompt(warning))
|
if (confirmPrompt(warning))
|
||||||
break;
|
break;
|
||||||
@@ -6511,7 +6511,7 @@ int processCommand(string* arguments)
|
|||||||
{
|
{
|
||||||
// confirm request
|
// confirm request
|
||||||
if ( arguments[2] != "y" ) {
|
if ( arguments[2] != "y" ) {
|
||||||
if (confirmPrompt("This command stops the processing of applications on a Module within the MariDB Columnstore System"))
|
if (confirmPrompt("This command stops the processing of applications on a Module within the MariaDB Columnstore System"))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6630,7 +6630,7 @@ int processCommand(string* arguments)
|
|||||||
|
|
||||||
// confirm request
|
// confirm request
|
||||||
if ( arguments[2] != "y" ) {
|
if ( arguments[2] != "y" ) {
|
||||||
if (confirmPrompt("This command starts the processing of applications on a Module within the MariDB Columnstore System"))
|
if (confirmPrompt("This command starts the processing of applications on a Module within the MariaDB Columnstore System"))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -6775,7 +6775,7 @@ int ProcessSupportCommand(int CommandID, std::string arguments[])
|
|||||||
{
|
{
|
||||||
// give warning for Process-Monitor
|
// give warning for Process-Monitor
|
||||||
if ( arguments[1] == "ProcessManager" ) {
|
if ( arguments[1] == "ProcessManager" ) {
|
||||||
if (confirmPrompt("ProcessManager is the Interface for the Console and should only be removed as part of a MariDB Columnstore Package installation"))
|
if (confirmPrompt("ProcessManager is the Interface for the Console and should only be removed as part of a MariaDB Columnstore Package installation"))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -6783,7 +6783,7 @@ int ProcessSupportCommand(int CommandID, std::string arguments[])
|
|||||||
if ( arguments[3] != "y" ) {
|
if ( arguments[3] != "y" ) {
|
||||||
getFlags(arguments, gracefulTemp, ackTemp, suspendAnswer, bNeedsConfirm);
|
getFlags(arguments, gracefulTemp, ackTemp, suspendAnswer, bNeedsConfirm);
|
||||||
// confirm request
|
// confirm request
|
||||||
if (confirmPrompt("This command stops the processing of an application on a Module within the MariDB Columnstore System"))
|
if (confirmPrompt("This command stops the processing of an application on a Module within the MariaDB Columnstore System"))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6836,7 +6836,7 @@ int ProcessSupportCommand(int CommandID, std::string arguments[])
|
|||||||
getFlags(arguments, gracefulTemp, ackTemp, suspendAnswer, bNeedsConfirm);
|
getFlags(arguments, gracefulTemp, ackTemp, suspendAnswer, bNeedsConfirm);
|
||||||
|
|
||||||
// confirm request
|
// confirm request
|
||||||
if (confirmPrompt("This command restarts the processing of an application on a Module within the MariDB Columnstore System"))
|
if (confirmPrompt("This command restarts the processing of an application on a Module within the MariaDB Columnstore System"))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
try
|
try
|
||||||
@@ -6899,7 +6899,7 @@ int ProcessSupportCommand(int CommandID, std::string arguments[])
|
|||||||
string password = arguments[1];
|
string password = arguments[1];
|
||||||
if ( arguments[2] != "y") {
|
if ( arguments[2] != "y") {
|
||||||
cout << endl << "!!!!! DESTRUCTIVE COMMAND !!!!!" << endl;
|
cout << endl << "!!!!! DESTRUCTIVE COMMAND !!!!!" << endl;
|
||||||
string warning = "This command stops the Processing of applications and reboots all modules within the MariDB Columnstore System";
|
string warning = "This command stops the Processing of applications and reboots all modules within the MariaDB Columnstore System";
|
||||||
// confirm request
|
// confirm request
|
||||||
if (confirmPrompt(warning))
|
if (confirmPrompt(warning))
|
||||||
break;
|
break;
|
||||||
@@ -6991,7 +6991,7 @@ int ProcessSupportCommand(int CommandID, std::string arguments[])
|
|||||||
// close the log file
|
// close the log file
|
||||||
writeLog("End of a command session!!!");
|
writeLog("End of a command session!!!");
|
||||||
logFile.close();
|
logFile.close();
|
||||||
cout << endl << "Exiting the MariDB Columnstore Command Console" << endl;
|
cout << endl << "Exiting the MariaDB Columnstore Command Console" << endl;
|
||||||
exit (0);
|
exit (0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -7022,7 +7022,7 @@ int ProcessSupportCommand(int CommandID, std::string arguments[])
|
|||||||
string password = arguments[2];
|
string password = arguments[2];
|
||||||
if ( arguments[3] != "y") {
|
if ( arguments[3] != "y") {
|
||||||
cout << endl << "!!!!! DESTRUCTIVE COMMAND !!!!!" << endl;
|
cout << endl << "!!!!! DESTRUCTIVE COMMAND !!!!!" << endl;
|
||||||
string warning = "This command reboots a node within the MariDB Columnstore System";
|
string warning = "This command reboots a node within the MariaDB Columnstore System";
|
||||||
// confirm request
|
// confirm request
|
||||||
if (confirmPrompt(warning))
|
if (confirmPrompt(warning))
|
||||||
break;
|
break;
|
||||||
@@ -7061,7 +7061,7 @@ int ProcessSupportCommand(int CommandID, std::string arguments[])
|
|||||||
// close the log file
|
// close the log file
|
||||||
writeLog("End of a command session!!!");
|
writeLog("End of a command session!!!");
|
||||||
logFile.close();
|
logFile.close();
|
||||||
cout << endl << "Exiting the MariDB Columnstore Command Console" << endl;
|
cout << endl << "Exiting the MariaDB Columnstore Command Console" << endl;
|
||||||
exit (0);
|
exit (0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -7095,7 +7095,7 @@ int ProcessSupportCommand(int CommandID, std::string arguments[])
|
|||||||
{
|
{
|
||||||
if ( arguments[1] != "y" ) {
|
if ( arguments[1] != "y" ) {
|
||||||
// confirm request
|
// confirm request
|
||||||
if (confirmPrompt("This command stops the dbrm processes within the MariDB Columnstore System"))
|
if (confirmPrompt("This command stops the dbrm processes within the MariaDB Columnstore System"))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7129,7 +7129,7 @@ int ProcessSupportCommand(int CommandID, std::string arguments[])
|
|||||||
{
|
{
|
||||||
if ( arguments[1] != "y" ) {
|
if ( arguments[1] != "y" ) {
|
||||||
// confirm request
|
// confirm request
|
||||||
if (confirmPrompt("This command restarts the dbrm processes within the MariDB Columnstore System"))
|
if (confirmPrompt("This command restarts the dbrm processes within the MariaDB Columnstore System"))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7163,7 +7163,7 @@ int ProcessSupportCommand(int CommandID, std::string arguments[])
|
|||||||
}
|
}
|
||||||
catch(...)
|
catch(...)
|
||||||
{
|
{
|
||||||
cout << "ERROR: Problem getting systemStartupOffline from the MariDB Columnstore System Configuration file" << endl;
|
cout << "ERROR: Problem getting systemStartupOffline from the MariaDB Columnstore System Configuration file" << endl;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7195,7 +7195,7 @@ int ProcessSupportCommand(int CommandID, std::string arguments[])
|
|||||||
}
|
}
|
||||||
catch(...)
|
catch(...)
|
||||||
{
|
{
|
||||||
cout << "ERROR: Problem setting systemStartupOffline in the MariDB Columnstore System Configuration file" << endl;
|
cout << "ERROR: Problem setting systemStartupOffline in the MariaDB Columnstore System Configuration file" << endl;
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
cout << endl << " Successful setting of systemStartupOffline to '" << systemStartupOffline << "'" << endl << endl;
|
cout << endl << " Successful setting of systemStartupOffline to '" << systemStartupOffline << "'" << endl << endl;
|
||||||
@@ -7206,7 +7206,7 @@ int ProcessSupportCommand(int CommandID, std::string arguments[])
|
|||||||
{
|
{
|
||||||
if ( arguments[1] != "y" ) {
|
if ( arguments[1] != "y" ) {
|
||||||
// confirm request
|
// confirm request
|
||||||
if (confirmPrompt("This command stops the PrimProc processes within the MariDB Columnstore System"))
|
if (confirmPrompt("This command stops the PrimProc processes within the MariaDB Columnstore System"))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7240,7 +7240,7 @@ int ProcessSupportCommand(int CommandID, std::string arguments[])
|
|||||||
{
|
{
|
||||||
if ( arguments[1] != "y" ) {
|
if ( arguments[1] != "y" ) {
|
||||||
// confirm request
|
// confirm request
|
||||||
if (confirmPrompt("This command restarts the PrimProc processes within the MariDB Columnstore System"))
|
if (confirmPrompt("This command restarts the PrimProc processes within the MariaDB Columnstore System"))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7260,7 +7260,7 @@ int ProcessSupportCommand(int CommandID, std::string arguments[])
|
|||||||
{
|
{
|
||||||
if ( arguments[1] != "y" ) {
|
if ( arguments[1] != "y" ) {
|
||||||
// confirm request
|
// confirm request
|
||||||
if (confirmPrompt("This command stops the ExeMgr processes within the MariDB Columnstore System"))
|
if (confirmPrompt("This command stops the ExeMgr processes within the MariaDB Columnstore System"))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7294,7 +7294,7 @@ int ProcessSupportCommand(int CommandID, std::string arguments[])
|
|||||||
{
|
{
|
||||||
if ( arguments[1] != "y" ) {
|
if ( arguments[1] != "y" ) {
|
||||||
// confirm request
|
// confirm request
|
||||||
if (confirmPrompt("This command restarts the ExeMgr processes within the MariDB Columnstore System"))
|
if (confirmPrompt("This command restarts the ExeMgr processes within the MariaDB Columnstore System"))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7326,11 +7326,11 @@ int ProcessSupportCommand(int CommandID, std::string arguments[])
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
oam.distributeConfigFile(name);
|
oam.distributeConfigFile(name);
|
||||||
cout << endl << " Successful Distribution of MariDB Columnstore Config File" << endl << endl;
|
cout << endl << " Successful Distribution of MariaDB Columnstore Config File" << endl << endl;
|
||||||
}
|
}
|
||||||
catch (exception& e)
|
catch (exception& e)
|
||||||
{
|
{
|
||||||
cout << endl << "**** Distribution of MariDB Columnstore Config File Failed : " << e.what() << endl;
|
cout << endl << "**** Distribution of MariaDB Columnstore Config File Failed : " << e.what() << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -7954,7 +7954,7 @@ void printProcessStatus(std::string port)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cout << endl << "MariDB Columnstore Process statuses" << endl << endl;
|
cout << endl << "MariaDB Columnstore Process statuses" << endl << endl;
|
||||||
cout << "Process Module Status Last Status Change Process ID" << endl;
|
cout << "Process Module Status Last Status Change Process ID" << endl;
|
||||||
cout << "------------------ ------ --------------- ------------------------ ----------" << endl;
|
cout << "------------------ ------ --------------- ------------------------ ----------" << endl;
|
||||||
try
|
try
|
||||||
|
@@ -851,25 +851,7 @@ int main(int argc, char *argv[])
|
|||||||
cout << endl << "System Catalog Successfull Created" << endl;
|
cout << endl << "System Catalog Successfull Created" << endl;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( oam.checkLogStatus("/tmp/dbbuilder.log", "System catalog appears to exist") ) {
|
if ( !oam.checkLogStatus("/tmp/dbbuilder.log", "System catalog appears to exist") ) {
|
||||||
|
|
||||||
cout << endl << "Run Upgrade Script..";
|
|
||||||
cout.flush();
|
|
||||||
|
|
||||||
//send message to procmon's to run upgrade script
|
|
||||||
bool pmwithum = false;
|
|
||||||
int status = sendUpgradeRequest(IserverTypeInstall, pmwithum);
|
|
||||||
|
|
||||||
if ( status != 0 ) {
|
|
||||||
cout << "ERROR: Error return in running the upgrade script, check /tmp/upgrade.log" << endl;
|
|
||||||
cout << endl << "MariaDB Columnstore Install Failed" << endl << endl;
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
cout << " DONE" << endl;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
cout << endl << "System Catalog Create Failure" << endl;
|
cout << endl << "System Catalog Create Failure" << endl;
|
||||||
cout << "Check latest log file in /tmp/dbbuilder.log.*" << endl;
|
cout << "Check latest log file in /tmp/dbbuilder.log.*" << endl;
|
||||||
exit (1);
|
exit (1);
|
||||||
|
Reference in New Issue
Block a user