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

smoke.py leaves orphan processes when mongod startup times out

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.2
    • Affects Version/s: 2.6.0
    • Component/s: Build
    • Fully Compatible
    • ALL
    • Server 2.7.2
    • 0

      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!

            Assignee:
            matt.kangas Matt Kangas
            Reporter:
            matt.kangas Matt Kangas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: