pg_auto_failover icon indicating copy to clipboard operation
pg_auto_failover copied to clipboard

Detecting PID 0 when dropping a node

Open JelteF opened this issue 3 years ago • 0 comments

A user on slack reported this behaviour:

 /usr/pgsql-13/bin/pg_autoctl drop node --pgdata /var/lib/pgsql/13/data --destroy
18:06:33 71415 INFO  Removing node with name "node_10" in formation "default" from the monitor
18:06:33 71415 INFO  An instance of pg_autoctl is running with PID 0, waiting for it to stop.
18:07:03 71415 INFO  Sending signal SIGQUIT to pg_autoctl process 0
Quit

Sending this signal to PID 0 seems clearly incorrect. It caused the node to be stuck in dropped state on the monitor.

Link to slack message for reference: https://citus-public.slack.com/archives/C0XRHT1KJ/p1640164156184000

JelteF avatar Dec 23 '21 10:12 JelteF