[SERVER-30855] On Windows the collect_resource_info.py script throws IOError without creating system_resouce_info_{task_id}.json file if the path length is greater than MAX_PATH Created: 26/Aug/17  Updated: 30/Oct/23  Resolved: 07/Sep/17

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: 3.5.12
Fix Version/s: 3.5.13

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

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: TIG 2017-10-02
Participants:

 Description   

It has been observed that if the path length of the file system_resource_info_${task_id}.json is greater than MAX_PATH (which is 260 on Windows) an IOError is thrown and the file is not created. Hence we do not collect system resource info.

We see an example in this patch build: https://evergreen.mongodb.com/task/mongodb_mongo_master_windows_64_2k8_debug_off_replica_sets_resync_static_jscore_passthrough_MMAPv1_patch_5dcaad5f137eebc1915c0fc7b5078da4aa86f915_59a0ac00c9ec440568014dbc_17_08_25_23_02_04

Since the file path generated with the task_id can be longer than 260, we've decided to shorten the file name to just system_resource_info.json.



 Comments   
Comment by Githook User [ 07/Sep/17 ]

Author:

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

Message: SERVER-30855 Rename system_resouce_info_

{task_id}

.json to system_resouce_info.json
Branch: master
https://github.com/mongodb/mongo/commit/c58c5814e6734bfaeb73b8099345336c095b3180

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