We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent78603f8 commit177724bCopy full SHA for 177724b
testgres/node.py
@@ -351,7 +351,7 @@ def _try_shutdown(self, max_attempts, with_force=False):
351
# If force stopping is enabled and PID is valid
352
ifwith_forceandnode_pid!=0:
353
# If we couldn't stop the node
354
-p_status_output=self.os_ops.exec_command(cmd=f'ps -p{node_pid}',shell=True).decode('utf-8')
+p_status_output=self.os_ops.exec_command(cmd=f'ps -o pid= -p{node_pid}',shell=True,ignore_errors=True).decode('utf-8')
355
ifself.status()!=NodeStatus.Stoppedandp_status_outputandstr(node_pid)inp_status_output:
356
try:
357
eprint(f'Force stopping node{self.name} with PID{node_pid}')