[SERVER-37467] Have collect_resource_info.py recover from transient errors. Created: 04/Oct/18  Updated: 29/Oct/23  Resolved: 22/Oct/18

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.6.9, 4.0.4, 4.1.5

Type: Bug Priority: Major - P3
Reporter: Daniel Gottlieb (Inactive) Assignee: Shreyas Kalyan
Resolution: Fixed Votes: 0
Labels: tig-qwin-eligible
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0, v3.6
Sprint: STM 2018-10-22, STM 2018-11-05
Participants:
Linked BF Score: 8
Story Points: 1

 Description   

Its output is useful! It's a missed opportunity when the output file doesn't contain all the data it could.

[2018/09/18 17:31:29.082] Traceback (most recent call last):
[2018/09/18 17:31:29.082]   File "buildscripts/collect_resource_info.py", line 90, in <module>
[2018/09/18 17:31:29.082]     main()
[2018/09/18 17:31:29.082]   File "buildscripts/collect_resource_info.py", line 40, in main
[2018/09/18 17:31:29.082]     response = requests.get("http://localhost:2285/status")
[2018/09/18 17:31:29.082]   File "/opt/mongodbtoolchain/v2/lib/python2.7/site-packages/requests/api.py", line 72, in get
[2018/09/18 17:31:29.082]     return request('get', url, params=params, **kwargs)
[2018/09/18 17:31:29.082]   File "/opt/mongodbtoolchain/v2/lib/python2.7/site-packages/requests/api.py", line 58, in request
[2018/09/18 17:31:29.083]     return session.request(method=method, url=url, **kwargs)
[2018/09/18 17:31:29.083]   File "/opt/mongodbtoolchain/v2/lib/python2.7/site-packages/requests/sessions.py", line 508, in request
[2018/09/18 17:31:29.083]     resp = self.send(prep, **send_kwargs)
[2018/09/18 17:31:29.083]   File "/opt/mongodbtoolchain/v2/lib/python2.7/site-packages/requests/sessions.py", line 618, in send
[2018/09/18 17:31:29.083]     r = adapter.send(request, **kwargs)
[2018/09/18 17:31:29.083]   File "/opt/mongodbtoolchain/v2/lib/python2.7/site-packages/requests/adapters.py", line 490, in send
[2018/09/18 17:31:29.083]     raise ConnectionError(err, request=request)
[2018/09/18 17:31:29.083] requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine("''",))



 Comments   
Comment by Githook User [ 22/Oct/18 ]

Author:

{'name': 'Shreyas Kalyan', 'email': 'shreyaskalyan@gmail.com', 'username': 'shreyaskal'}

Message: SERVER-37467 Have collect_resource_info.py recover from transient errors.

(cherry picked from commit f86b57ac39110510321469c70c7a76e9232d5530)
Branch: v3.6
https://github.com/mongodb/mongo/commit/00b88359c7c1440c519c0d06afbcd3c181fa0bbb

Comment by Githook User [ 22/Oct/18 ]

Author:

{'name': 'Shreyas Kalyan', 'email': 'shreyaskalyan@gmail.com', 'username': 'shreyaskal'}

Message: SERVER-37467 Have collect_resource_info.py recover from transient errors.

(cherry picked from commit f86b57ac39110510321469c70c7a76e9232d5530)
Branch: v4.0
https://github.com/mongodb/mongo/commit/1f4edd26fcf3b28ba0adb6639353381cb437b8b2

Comment by Githook User [ 22/Oct/18 ]

Author:

{'name': 'Shreyas Kalyan', 'email': 'shreyaskalyan@gmail.com', 'username': 'shreyaskal'}

Message: SERVER-37467 Have collect_resource_info.py recover from transient errors.
Branch: master
https://github.com/mongodb/mongo/commit/f86b57ac39110510321469c70c7a76e9232d5530

Comment by Max Hirschhorn [ 15/Oct/18 ]

We should try and collect a sample immediately after a network error so we don't go 10+ seconds without any entries.

Comment by Max Hirschhorn [ 04/Oct/18 ]

Given that the Evergreen team disabled ingesting system resource metrics in EVG-5318, I think we may as well make the collect_resource_info.py more useful where it continues to be easy to do so.

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