[SERVER-37125] Powercycle should ignore a process reference if it no longer exists Created: 13/Sep/18 Updated: 29/Oct/23 Resolved: 30/Apr/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Testing Infrastructure |
| Affects Version/s: | None |
| Fix Version/s: | 4.9.0-rc1, 4.0.25, 4.2.15, 4.4.7, 5.0.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jonathan Abrahams | Assignee: | Mikhail Shchatko |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | tig-bfday-eligible, tig-powercycle | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||
| Backport Requested: |
v4.9, v4.4, v4.2, v4.0, v3.6
|
||||||||||||||||||||||||
| Sprint: | STM 2021-05-17 | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Linked BF Score: | 46 | ||||||||||||||||||||||||
| Story Points: | 1 | ||||||||||||||||||||||||
| Description |
|
All references in powercycle.py to psutil.Process(pid) should be done in a try/except block. |
| Comments |
| Comment by Githook User [ 12/May/21 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'name': 'Mikhail Shchatko', 'email': 'mikhail.shchatko@mongodb.com', 'username': 'MikhailShchatko'}Message: | ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Githook User [ 30/Apr/21 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'name': 'Mikhail Shchatko', 'email': 'mikhail.shchatko@mongodb.com', 'username': 'MikhailShchatko'}Message: | ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Githook User [ 30/Apr/21 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'name': 'Mikhail Shchatko', 'email': 'mikhail.shchatko@mongodb.com', 'username': 'MikhailShchatko'}Message: (cherry picked from commit b9d9a010494018dce57a95793cb81a4a317119aa) | ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Githook User [ 30/Apr/21 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'name': 'Mikhail Shchatko', 'email': 'mikhail.shchatko@mongodb.com', 'username': 'MikhailShchatko'}Message: (cherry picked from commit 08459b3b33a4c5567bcea75d3d33e2937a467252) | ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Githook User [ 30/Apr/21 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'name': 'Mikhail Shchatko', 'email': 'mikhail.shchatko@mongodb.com', 'username': 'MikhailShchatko'}Message: | ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jonathan Abrahams [ 01/Nov/18 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
We should surround all references to a process in class ProcessControl with a try/except:
|