[SERVER-30630] Remote hang_analyzer invoked during timeout phase even when the task doesn't have remote processes Created: 12/Aug/17  Updated: 30/Oct/23  Resolved: 14/Aug/17

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.5.12

Type: Bug Priority: Minor - P4
Reporter: Max Hirschhorn Assignee: Jonathan Abrahams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: TIG 2017-08-21
Participants:
Linked BF Score: 0

 Description   

The ${aws_ec2_yml} expansion isn't set, which causes the if [ -f ${aws_ec2_yml|} ]; then condition to evaluate to true. See this Evergreen task as an example of when this was triggered.

[2017/08/11 09:22:55.295] # Call hang_analyzer.py script for tasks that are running remote mongo processes
[2017/08/11 09:22:55.295] # The file  will define the remote's  and .
[2017/08/11 09:22:55.295] # Any task which uses remote processes will have previously loaded this file to set these
[2017/08/11 09:22:55.295] # expansions macros.
[2017/08/11 09:22:55.295] if [ -f  ]; then
[2017/08/11 09:22:55.295]   core_ext=core
[2017/08/11 09:22:55.295]   if [ "Windows_NT" = "$OS" ]; then
[2017/08/11 09:22:55.295]     core_ext=mdmp
[2017/08/11 09:22:55.295]   fi
[2017/08/11 09:22:55.295]   ssh_options=" -o GSSAPIAuthentication=no -o CheckHostIP=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=10 -o ConnectionAttempts=10"
[2017/08/11 09:22:55.295]   # buildscripts must be installed in  on the remote host.
[2017/08/11 09:22:55.295]   remote_dir=.
[2017/08/11 09:22:55.296]   cmds="PATH=\"/opt/mongodbtoolchain/gdb/bin:\$PATH\" $sudo python buildscripts/hang_analyzer.py $hang_analyzer_option"
[2017/08/11 09:22:55.296]   python buildscripts/remote_operations.py \
[2017/08/11 09:22:55.296]     --verbose                      \
[2017/08/11 09:22:55.296]     --userHost $USER@ \
[2017/08/11 09:22:55.296]     --sshOptions "$ssh_options"    \
[2017/08/11 09:22:55.296]     --retries 10       \
[2017/08/11 09:22:55.296]     --commands "$cmds"             \
[2017/08/11 09:22:55.296]     --commandDir 
[2017/08/11 09:22:55.296]   python buildscripts/remote_operations.py \
[2017/08/11 09:22:55.296]     --verbose                          \
[2017/08/11 09:22:55.296]     --userHost $USER@     \
[2017/08/11 09:22:55.296]     --operation "copy_from"            \
[2017/08/11 09:22:55.296]     --sshOptions "$ssh_options"        \
[2017/08/11 09:22:55.296]     --retries 10           \
[2017/08/11 09:22:55.296]     --file "/debugger*.*" \
[2017/08/11 09:22:55.296]     --file "/*.$core_ext"
[2017/08/11 09:22:55.296] fi
[2017/08/11 09:22:55.490] Usage: remote_operations.py [options]
[2017/08/11 09:22:55.490] 
[2017/08/11 09:22:55.490] remote_operations.py: error: --commandDir option requires an argument



 Comments   
Comment by Githook User [ 14/Aug/17 ]

Author:

{'name': 'Jonathan Abrahams', 'username': 'hptabster', 'email': 'jonathan@mongodb.com'}

Message: SERVER-30630 Remote hang_analyzer invoked during timeout phase even when the task doesn't have remote processes
Branch: master
https://github.com/mongodb/mongo/commit/10bff4daf0473b8970a2b7b7e34d18804655ba34

Generated at Thu Feb 08 04:24:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.