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
MCOL-5594: Interactive "mcs cluster stop" command for CMAPI. (#3024)
* MCOL-5594: Interactive "mcs cluster stop" command for CMAPI. [add] NodeProcessController class to handle Node operations [add] two endpoints: stop_dmlproc (PUT) and is_process_running (GET) [add] NodeProcessController.put_stop_dmlproc method to separately stop DMLProc on primary Node [add] NodeProcessController.get_process_running method to check if specified process running or not [add] build_url function to helpers.py. It needed to build urls with query_params [add] MCSProcessManager.gracefully_stop_dmlproc method [add] MCSProcessManager.is_service_running method as a top level wrapper to the same method in dispatcher [fix] MCSProcessManager.stop by using new gracefully_stop_dmlproc [add] interactive option and mode to mcs cluster stop command [fix] requirements.txt with typer version to 0.9.0 where supports various of features including "Annotated" [fix] requirements.txt click version (8.1.3 -> 8.1.7) and typing-extensions (4.3.0 -> 4.8.0). This is dependencies for typer package. [fix] multiple minor formatting, docstrings and comments * MCOL-5594: Add new CMAPI transaction manager. - [add] TransactionManager ContextDecorator to manage transactions in less code and in one place - [add] TransactionManager to cli cluster stop command and to API cluster shutdown command - [fix] id -> txn_id in ClusterHandler class - [fix] ClusterHandler.shutdown class to use inside existing transaction - [add] docstrings in multiple places * MCOL-5594: Review fixes.
This commit is contained in:
@ -115,7 +115,6 @@ class NodeConfig:
|
||||
maintenance = etree.SubElement(root, 'Maintenance')
|
||||
maintenance.text = str(False).lower()
|
||||
|
||||
|
||||
def upgrade_config(self, tree=None, root=None, upgrade=True):
|
||||
"""
|
||||
Add the parts that might be missing after an upgrade from an earlier
|
||||
@ -290,7 +289,6 @@ class NodeConfig:
|
||||
return pm_num
|
||||
raise Exception("Did not find my IP addresses or names in the SystemModuleConfig section")
|
||||
|
||||
|
||||
def rollback_config(self, config_filename: str = DEFAULT_MCS_CONF_PATH):
|
||||
"""Rollback the configuration.
|
||||
|
||||
@ -307,7 +305,6 @@ class NodeConfig:
|
||||
if config_file_copy.exists():
|
||||
replace(backup_path, config_file) # atomic replacement
|
||||
|
||||
|
||||
def get_current_config(self, config_filename: str = DEFAULT_MCS_CONF_PATH):
|
||||
"""Retrievs current configuration.
|
||||
|
||||
@ -325,7 +322,6 @@ class NodeConfig:
|
||||
tree.getroot(), pretty_print=True, encoding='unicode'
|
||||
)
|
||||
|
||||
|
||||
def get_current_sm_config(
|
||||
self, config_filename: str = DEFAULT_SM_CONF_PATH
|
||||
) -> str:
|
||||
@ -343,7 +339,6 @@ class NodeConfig:
|
||||
module_logger.error(f"{func_name} SM config {config_filename} not found.")
|
||||
return ''
|
||||
|
||||
|
||||
def s3_enabled(self, config_filename: str = DEFAULT_SM_CONF_PATH) -> bool:
|
||||
"""Checks if SM is enabled
|
||||
|
||||
|
Reference in New Issue
Block a user