MCPcopy Create free account
hub / github.com/apache/kafka / sigkill_remote_process

Function sigkill_remote_process

system_test/utils/system_test_utils.py:236–247  ·  view source on GitHub ↗
(hostname, pidStack)

Source from the content-addressed store, hash-verified

234 raise
235
236def sigkill_remote_process(hostname, pidStack):
237
238 while ( len(pidStack) > 0 ):
239 pid = pidStack.pop()
240 cmdStr = "ssh " + hostname + " 'kill -9 " + pid + "'"
241
242 try:
243 logger.debug("executing command [" + cmdStr + "]", extra=d)
244 sys_call_return_subproc(cmdStr)
245 except:
246 print "WARN - pid:",pid,"not found"
247 raise
248
249def simulate_garbage_collection_pause_in_remote_process(hostname, pidStack, pauseTimeInSeconds):
250 pausedPidStack = []

Callers

nothing calls this directly

Calls 1

sys_call_return_subprocFunction · 0.85

Tested by

no test coverage detected