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:
Sean Dague 2014-09-23 11:02:55 -04:00
parent 51de439a4d
commit ff259324ab
1 changed files with 2 additions and 0 deletions

View File

@ -163,6 +163,7 @@ class MultiprocessWSGITest(integrated_helpers._IntegratedTestBase):
try:
os.kill(worker_pid, 0)
time.sleep(0.1)
LOG.info("Worker: %s still around, trying again" % worker_pid)
except OSError as err:
# by watching specifically for errno.ESRCH
# we guarantee this loop continues until
@ -171,6 +172,7 @@ class MultiprocessWSGITest(integrated_helpers._IntegratedTestBase):
# for several cycles in case a parent process
# needs to check their exit state.
if err.errno == errno.ESRCH:
LOG.info("Worker: %s successfully shut down" % worker_pid)
break
LOG.warning("got non-ESRCH errno %d when attempting "
"status of worker PID %d",