From 7736056bf2bdb9a5ab98c4137276a760f970d114 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 27 Feb 2018 11:28:37 -0500 Subject: [PATCH] Fix hangtraces analyzer With threadid, the analyzer was failing to collapse identical threads. --- confluent_server/dbgtools/processhangtraces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/dbgtools/processhangtraces.py b/confluent_server/dbgtools/processhangtraces.py index 9e93acfe..329efe29 100644 --- a/confluent_server/dbgtools/processhangtraces.py +++ b/confluent_server/dbgtools/processhangtraces.py @@ -27,7 +27,7 @@ with open(sys.argv[1]) as tracefile: if currtrace not in threadtraces: threadtraces[currtrace] = 0 threadtraces[currtrace] += 1 - currtrace = line + currtrace = '' elif currtrace is not None: currtrace += line + '\n' for trace in sorted(threadtraces, key=lambda x: threadtraces[x]):