MCPcopy Create free account
hub / github.com/apache/impala / get_pid

Method get_pid

tests/common/impala_cluster.py:439–447  ·  view source on GitHub ↗

Gets the PID of the process. Returns None if the PID cannot be determined

(self)

Source from the content-addressed store, hash-verified

437 return str(self)
438
439 def get_pid(self):
440 """Gets the PID of the process. Returns None if the PID cannot be determined"""
441 pid = self.__get_pid()
442 if pid:
443 LOG.info("Found PID %s for %s" % (pid, " ".join(self.cmd)))
444 else:
445 LOG.info("No PID found for process cmdline: %s. Process is dead?" %
446 " ".join(self.cmd))
447 return pid
448
449 def get_pids(self):
450 """Gets the PIDs of the process. In some circumstances, a process can run multiple

Callers 14

killMethod · 0.95
wait_for_exitMethod · 0.95
__run_workloadFunction · 0.80
__kill_random_killerFunction · 0.80
check_deleted_file_fdMethod · 0.80
test_memory_pressureMethod · 0.80
test_shutdown_idleMethod · 0.80
test_shutdown_signalMethod · 0.80

Calls 2

__get_pidMethod · 0.95
joinMethod · 0.45