We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3040472 commit e052089Copy full SHA for e052089
managed/src/main/resources/health/node_health.py.template
@@ -1733,8 +1733,9 @@ class NodeChecker():
1733
pid_list.append(root_pid)
1734
if process_name == TSERVER:
1735
postgre_pid = self.get_process_pid_by_name(POSTMASTER)
1736
- pid_list.remove(postgre_pid)
1737
- pid_list = [p for p in pid_list if p not in self._get_subprocess_pids(postgre_pid)]
+ if postgre_pid is not None:
+ pid_list.remove(postgre_pid)
1738
+ pid_list = [p for p in pid_list if p not in self._get_subprocess_pids(postgre_pid)]
1739
total_stat = self._get_empty_proc_results()
1740
prev_process_map = {}
1741
if process_name in self.prev_process_results.keys():
0 commit comments