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

The buildscripts/collect_resource_info.py script may exit early if it encounters a KeyError exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.5.10
    • Fix Version/s: 3.5.11
    • Component/s: None
    • Labels:
      None

      Description

      While collecting resource usage information from the Evergreen status endpoint, the buildscripts/collect_resource_info.py script may encounter a KeyError exception while trying to read parentPid or numThreads property from a process info document in ps_info. The missing properties is due to an error encountered by gopsutil while reading from /proc. This prevents us from collecting the full set of resource usage info for the duration of the test suite.

      This error is seen in the system logs:

      [2017/07/21 11:43:48.918] Traceback (most recent call last):
      [2017/07/21 11:43:48.918]   File "buildscripts/collect_resource_info.py", line 98, in <module>
      [2017/07/21 11:43:48.918]     main()
      [2017/07/21 11:43:48.918]   File "buildscripts/collect_resource_info.py", line 84, in main
      [2017/07/21 11:43:48.918]     sys_res_dict["ppid"] = process["parentPid"]
      [2017/07/21 11:43:48.918] KeyError: 'parentPid'
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              eddie.louie Eddie Louie
              Reporter:
              eddie.louie Eddie Louie
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: