Add further debug logging for multiprocess test
In order to track down where we are stalling add some additional informational logging into the cleanup path. Change-Id: Ia12b1049b3a63851bde69cb5f7c3fe31b0d12c41 Related-Bug: #1357578
This commit is contained in:
parent
51de439a4d
commit
ff259324ab
|
@ -163,6 +163,7 @@ class MultiprocessWSGITest(integrated_helpers._IntegratedTestBase):
|
||||||
try:
|
try:
|
||||||
os.kill(worker_pid, 0)
|
os.kill(worker_pid, 0)
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
LOG.info("Worker: %s still around, trying again" % worker_pid)
|
||||||
except OSError as err:
|
except OSError as err:
|
||||||
# by watching specifically for errno.ESRCH
|
# by watching specifically for errno.ESRCH
|
||||||
# we guarantee this loop continues until
|
# we guarantee this loop continues until
|
||||||
|
@ -171,6 +172,7 @@ class MultiprocessWSGITest(integrated_helpers._IntegratedTestBase):
|
||||||
# for several cycles in case a parent process
|
# for several cycles in case a parent process
|
||||||
# needs to check their exit state.
|
# needs to check their exit state.
|
||||||
if err.errno == errno.ESRCH:
|
if err.errno == errno.ESRCH:
|
||||||
|
LOG.info("Worker: %s successfully shut down" % worker_pid)
|
||||||
break
|
break
|
||||||
LOG.warning("got non-ESRCH errno %d when attempting "
|
LOG.warning("got non-ESRCH errno %d when attempting "
|
||||||
"status of worker PID %d",
|
"status of worker PID %d",
|
||||||
|
|
Loading…
Reference in New Issue