Blame SOURCES/sos-bz2012857-plugin-timeout-unhandled-exception.patch

003633
From a93e118a9c88df52fd2c701d2276185f877d565c Mon Sep 17 00:00:00 2001
003633
From: Pavel Moravec <pmoravec@redhat.com>
003633
Date: Wed, 3 Nov 2021 16:07:15 +0100
003633
Subject: [PATCH] [report] shutdown threads for timeouted plugins
003633
003633
Wait for shutting down threads of timeouted plugins, to prevent
003633
them in writing to moved auxiliary files like sos_logs/sos.log
003633
003633
Resolves: #2722
003633
Closes: #2746
003633
003633
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
003633
---
003633
 sos/report/__init__.py | 1 +
003633
 1 file changed, 1 insertion(+)
003633
003633
diff --git a/sos/report/__init__.py b/sos/report/__init__.py
003633
index 1b5bc97d..ef86b28d 100644
003633
--- a/sos/report/__init__.py
003633
+++ b/sos/report/__init__.py
003633
@@ -1046,6 +1046,7 @@ class SoSReport(SoSComponent):
003633
                 self.ui_log.error("\n Plugin %s timed out\n" % plugin[1])
003633
                 self.running_plugs.remove(plugin[1])
003633
                 self.loaded_plugins[plugin[0]-1][1].set_timeout_hit()
003633
+                pool.shutdown(wait=True)
003633
                 pool._threads.clear()
003633
         if self.opts.estimate_only:
003633
             from pathlib import Path
003633
-- 
003633
2.31.1
003633