1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-4019 This patch avoids fork() in wokernode/controllernode that hangs in ThreadPool::~

waiting infinitely for fPruneThread->join() to return.
This commit is contained in:
Roman Nozdrin
2020-06-09 15:47:17 +00:00
parent 653a5f4554
commit 1c463fa329
2 changed files with 4 additions and 5 deletions

View File

@ -4,8 +4,7 @@ PartOf=mcs-workernode.service
After=mcs-workernode.service
[Service]
Type=forking
ExecStartPre=/usr/bin/env bash -c "systemctl start mcs-workernode"
ExecStart=@ENGINE_BINDIR@/controllernode
Type=simple
ExecStart=@ENGINE_BINDIR@/controllernode fg
Restart=on-failure
ExecStop=@ENGINE_BINDIR@/mcs-stop-controllernode.sh $MAINPID

View File

@ -3,8 +3,8 @@ Description=mcs-workernode
After=mcs-loadbrm.service
[Service]
Type=forking
ExecStart=@ENGINE_BINDIR@/workernode DBRM_Worker1
Type=simple
ExecStart=@ENGINE_BINDIR@/workernode DBRM_Worker1 fg
Restart=on-failure
ExecStop=/usr/bin/env bash -c "kill -15 $MAINPID"
ExecStopPost=-@ENGINE_BINDIR@/save_brm