1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-08 14:22:09 +03:00

Part of review changes to retrigger package build

This commit is contained in:
Alexander Presnyakov
2025-04-01 14:51:52 +00:00
parent 37453ad47e
commit 9a1ac0eb74
4 changed files with 22 additions and 7 deletions

View File

@@ -405,7 +405,12 @@ class MCSProcessManager:
return set(node_progs) == set(p['name'] for p in running_procs)
@classmethod
def start_node(cls, is_primary: bool, use_sudo: bool = True, is_read_only: bool = False) -> None:
def start_node(
cls,
is_primary: bool,
use_sudo: bool = True,
is_read_only: bool = False,
) -> None:
"""Start mcs node processes.
:param is_primary: is node primary or not, defaults to True
@@ -431,7 +436,10 @@ class MCSProcessManager:
cls._wait_for_workernodes()
if prog_name in (MCSProgs.DML_PROC.value, MCSProgs.DDL_PROC.value):
cls._wait_for_controllernode()
if is_read_only and prog_name == MCSProgs.WRITE_ENGINE_SERVER.value:
if (
is_read_only and
prog_name == MCSProgs.WRITE_ENGINE_SERVER.value
):
logging.debug('Node is in read-only mode, not starting WriteEngine')
continue
if not cls.start(prog_name, is_primary, use_sudo):