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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.11
    • Affects Version/s: 3.5.10
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • TIG 2017-07-31

      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'
      

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

              Created:
              Updated:
              Resolved: