From bc4dcedd48441e768fce9567950d3de977f01886 Mon Sep 17 00:00:00 2001 From: Israel Fruchter Date: Sun, 14 Feb 2021 15:58:35 +0200 Subject: [PATCH] fix(#304): wait a bit more when killing scylla-jmx on timeout The `SIGQUIT` is follow too soon by a forcefull kill, i.e. we don't let the process enough time to print the output to stdout Close: #303 Ref: https://github.com/scylladb/scylla/issues/7991#issuecomment-771468592 --- ccmlib/scylla_node.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ccmlib/scylla_node.py b/ccmlib/scylla_node.py index 4bec87cf..8893021f 100644 --- a/ccmlib/scylla_node.py +++ b/ccmlib/scylla_node.py @@ -660,6 +660,7 @@ def nodetool(self, *args, **kwargs): except subprocess.TimeoutExpired: self.error("nodetool timeout, going to kill scylla-jmx with SIGQUIT") self.kill_jmx(signal.SIGQUIT) + time.sleep(5) # give the java process time to print the threaddump into the log raise def kill_jmx(self, __signal):