]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks: watchdog terminate thrasher
authorNitzan Mordechai <nmordech@redhat.com>
Wed, 26 Jun 2024 13:04:45 +0000 (13:04 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Tue, 6 Aug 2024 06:56:00 +0000 (06:56 +0000)
If a thrasher exception occurs, the do_dump_ops thread will continue
looping until the Teuthology timeout is reached.
The watchdog should terminate the thrasher to free up resources.

Fixes: https://tracker.ceph.com/issues/66698
Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
qa/tasks/daemonwatchdog.py

index 4f5103bfa78b579323b0ec6e9d50723921b345a6..234a26e10ea24df5cb7476c810d09866626174af 100644 (file)
@@ -117,6 +117,7 @@ class DaemonWatchdog(Greenlet):
             for thrasher in self.thrashers:
                 if thrasher.exception is not None:
                     self.log("{name} failed".format(name=thrasher.name))
+                    thrasher.stop_and_join()
                     bark = True
 
             if bark: