-
Type: New Feature
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: Backlog
-
Component/s: Internal Code
-
Fully Compatible
-
STM 2019-09-23, STM 2019-10-03, STM 2019-10-17
-
3
This can be done in parallel with any other PM-1546 work.
Create a new whatthefailure.js javascript file (class) in the shell. For now this will just have a single static method called WTF.areOtherMongosDoing(opts) (name subject to change). This will shell out to the existing hang_analyzer.py script via the runProgram shell built-in.
The opts parameter has the following fields:
- pids optional array of pids to pass into hang-analyzer. If not specified will use the pids of child and/or peer mongo processes obtained via TestData or shell built-ins (both added in other tickets)
- args optional array of strings - additional set of args to pass to hang-analyzer. If not specified will use reasonable defaults (probably just empty). This is a "private" parameter (not documented or required to be backward-compatible) because most users should never need to use/see/set it.
- is depended on by
-
SERVER-43255 Automatically call whatthefailure from assert.soon and friends
- Closed