[SERVER-30285] The buildscripts/collect_resource_info.py script may exit early if it encounters a KeyError exception Created: 24/Jul/17  Updated: 30/Oct/23  Resolved: 25/Jul/17

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 3.5.10
Fix Version/s: 3.5.11

Type: Bug Priority: Major - P3
Reporter: Eddie Louie Assignee: Eddie Louie
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
is related to SERVER-29367 Add buildscripts/collect_resource_inf... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: TIG 2017-07-31
Participants:

 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'



 Comments   
Comment by Githook User [ 25/Jul/17 ]

Author:

{'username': 'elouie99', 'name': 'Eddie Louie', 'email': 'eddie.louie@mongodb.com'}

Message: SERVER-30285 Continue on KeyError in buildscripts/collect_resource_info.py
Branch: master
https://github.com/mongodb/mongo/commit/cd64c5cfbd0706b38d52cbf9f772fa08ecd969fc

Generated at Thu Feb 08 04:23:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.