[SERVER-48311] Fix free_monitoring tests and aws_e2e_assume_role.js on Windows Created: 20/May/20  Updated: 29/Oct/23  Resolved: 30/May/20

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

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Adam Cooper (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by PYTHON-2258 MONGODB-AWS auth tests failing on Win... Closed
Problem/Incident
is caused by SERVER-47579 Ensure cat may read files containing ... Closed
Backwards Compatibility: Minor Change
Operating System: ALL
Sprint: Security 2020-06-01
Participants:

 Description   

After the fix for SERVER-47579, "Ensure cat may read files containing NULL bytes", 16 of the free_monitoring tests and the aws_e2e_assume_role.js test started consistently failing on Windows.

Example from jstests/free_mon/free_mon_register.js:

[js_test:free_mon_register] 2020-05-20T01:24:22.365+0100 [jsTest] ----[js_test:free_mon_register] 2020-05-20T01:24:22.365+0100 [jsTest] Failed to parse: {"metrics": 1, "registers": 1, "faults": 0}[js_test:free_mon_register] 2020-05-20T01:24:22.365+0100 [jsTest] \0[js_test:free_mon_register] 2020-05-20T01:24:22.365+0100 [jsTest] {"metrics": 1, "registers": 1, "faults": 0}[js_test:free_mon_register] 2020-05-20T01:24:22.365+0100 [jsTest] \0[js_test:free_mon_register] 2020-05-20T01:24:22.366+0100 [jsTest] ---- 

The cat() function should stop appending a NULL (i.e. '\0') byte to files on Windows.

 



 Comments   
Comment by Githook User [ 30/May/20 ]

Author:

{'name': 'Adam Cooper', 'email': 'adam.cooper@mongodb.com', 'username': 'super-cooper'}

Message: SERVER-48311 Fix free_monitoring tests and aws_e2e_assume_role.js on Windows

SERVER-48311 use f.eof

SERVER-48311 fix use of f.eof

SERVER-48311 Dump file without loop

SERVER-48311 libfmt changes
Branch: master
https://github.com/mongodb/mongo/commit/1e1af7c30b287e72773f72a9ba31d3bdfae1502a

Generated at Thu Feb 08 05:16:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.