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

smoke.py leaves orphan processes when mongod startup times out

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.7.2
    • Component/s: Build
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Server 2.7.2
    • Linked BF Score:
      0

      Description

      smoke.py can leave orphan processes on failure, which causes MCI to wait two hours unnecessarily before it declares the task failed.

      Given a dummy "sleep-forever" script:

      #!/bin/sh
      exec sleep 32768

      Run smoke.py with --mongod=sleep-forever. Here I toggle on buildlogger for extra fun:

      $ python ./buildscripts/smoke.py --mongod=/Users/kangas/bin/sleep-forever --buildlogger-builder=mattkangas --buildlogger-buildnum=1 --buildlogger-credentials=../buildlogger.creds --buildlogger-phase=junk jsCore

      While running:

      $ pstree -s python
      -+= 00001 root /sbin/launchd
       \-+= 00143 kangas /sbin/launchd
         \-+= 00210 kangas /Applications/iTerm.app/Contents/MacOS/iTerm -psn_0_57358
           \-+= 02127 root login -fp kangas
             \-+= 02128 kangas -bash
               \-+= 05251 kangas python ./buildscripts/smoke.py --mongod=/Users/kangas/bin/sleep-forever --buildlogger-builder=mattkangas --buildlogger-buildnu
                 \-+- 05253 kangas /usr/bin/python buildscripts/buildlogger.py -g /Users/kangas/bin/sleep-forever --port 27999 --dbpath /data/db/sconsTests/ --
                   \--- 05254 kangas sleep 32768

      After it times out:

      $ pstree -s python
      -+= 00001 root /sbin/launchd
       \-+- 05253 kangas /usr/bin/python buildscripts/buildlogger.py -g /Users/kangas/bin/sleep-forever --port 27999 --dbpath /data/db/sconsTests/ --setParamet
         \--- 05254 kangas sleep 32768

      Orphans!

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: