[test] More logging when terminating workers

Bug: v8:13113
Change-Id: Ib80f4517075f806950d57f97da4e5181248f2276
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3879225
Reviewed-by: Alexander Schulze <alexschulze@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/main@{#83035}
This commit is contained in:
Michael Achenbach 2022-09-07 14:45:52 +02:00 committed by V8 LUCI CQ
parent 511f6ed079
commit fb84e9c72b

View File

@ -318,14 +318,25 @@ class DefaultExecutionPool(ContextPool):
# Drain the queues to prevent stderr chatter when queues are garbage
# collected.
self.notify("Draining queues")
# TODO(https://crbug.com/v8/13113): Remove extra logging after
# investigation.
elem_count = 0
try:
while True: self.work_queue.get(False)
while True:
self.work_queue.get(False)
elem_count += 1
if elem_count < 200:
logging.info('Drained an element from work queue.')
except Empty:
pass
except:
logging.exception('Error draining work queue.')
try:
while True: self.done_queue.get(False)
while True:
self.done_queue.get(False)
elem_count += 1
if elem_count < 200:
logging.info('Drained an element from done queue.')
except Empty:
pass
except: