summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2017-01-17 19:05:04 -0500
committerEddie Louie <eddie.louie@mongodb.com>2017-04-13 18:09:21 -0400
commit84e93628689aba8f0e20c47f7fc2254e51e10fa6 (patch)
tree0c9c170d94272602f8b2586698f813bd4d468f84
parentaf3f80eeca685400561f8bdf9f0e2346a845dfcf (diff)
downloadmongo-84e93628689aba8f0e20c47f7fc2254e51e10fa6.tar.gz
SERVER-27684 Remove hang_analyzer timeout
(cherry picked from commit afd3c348e1ef81dcea51221cde13976ea6271cf7)
-rwxr-xr-xbuildscripts/hang_analyzer.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/buildscripts/hang_analyzer.py b/buildscripts/hang_analyzer.py
index d6768ad25d9..7d313692242 100755
--- a/buildscripts/hang_analyzer.py
+++ b/buildscripts/hang_analyzer.py
@@ -23,7 +23,6 @@ import signal
import subprocess
import sys
import tempfile
-import threading
import time
from distutils import spawn
from optparse import OptionParser
@@ -455,17 +454,6 @@ def signal_process(pid, signalnum):
print "Cannot send signal to a process on Windows"
-def timeout_protector():
- print "Script timeout has been hit, terminating"
- if sys.platform == "win32":
- # Have the process exit with code 9 when it terminates itself to closely match the exit code
- # of the process when it sends itself a SIGKILL.
- handle = win32process.GetCurrentProcess()
- win32process.TerminateProcess(handle, 9)
- else:
- os.kill(os.getpid(), signal.SIGKILL)
-
-
# Basic procedure
#
# 1. Get a list of interesting processes
@@ -513,10 +501,6 @@ def main():
sys.stderr.write("hang_analyzer.py: Unsupported platform: %s\n" % (sys.platform))
exit(1)
- # Make sure the script does not hang
- timer = threading.Timer(120, timeout_protector)
- timer.start()
-
processes_orig = ps.dump_processes()
# Find all running interesting processes by doing a substring match.
@@ -556,9 +540,6 @@ def main():
dbg.dump_info(process[0], process[1], sys.stdout, check_dump_quota(max_dump_size_bytes, dbg.get_dump_ext()))
- # Suspend the timer so we can exit cleanly
- timer.cancel()
-
sys.stdout.write("Done analyzing processes for hangs\n")
if __name__ == "__main__":