Commit fb84e9c7 authored by Michael Achenbach's avatar Michael Achenbach Committed by V8 LUCI CQ

[test] More logging when terminating workers

Bug: v8:13113
Change-Id: Ib80f4517075f806950d57f97da4e5181248f2276
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3879225Reviewed-by: 's avatarAlexander Schulze <alexschulze@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/main@{#83035}
parent 511f6ed0
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment