Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-43254

Hang Analyzer shell integration uses child and peer mongo processes

    • 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:

      1. 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)
      2. 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.

            Assignee:
            ryan.timmons@mongodb.com Ryan Timmons
            Reporter:
            ryan.timmons@mongodb.com Ryan Timmons
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: