[SERVER-54412] DEATH_TEST not handling EINTR from its getline call Created: 09/Feb/21  Updated: 29/Oct/23  Resolved: 11/Feb/21

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 4.9.0

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

Attachments: Text File death_eintr.txt    
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Service Arch 2021-02-22
Participants:

 Description   

small writeup attached.

When running a DEATH_TEST on macos under lldb, the DeathTest::_doTest getline loop received an EINTR result. This broke out of the loop and aborted the test.

 

But EINTR is an expected spurious errno and should be tolerated, and the loop should be reentered.



 Comments   
Comment by Githook User [ 11/Feb/21 ]

Author:

{'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}

Message: SERVER-54412 DEATH_TEST must tolerate EINTR from getline
Branch: master
https://github.com/mongodb/mongo/commit/8e94afbf3a1f6ae97b1a1b94d0db90ae71b511ca

Comment by Billy Donahue [ 09/Feb/21 ]

Code Review:

https://mongodbcr.appspot.com/764220001

Comment by Billy Donahue [ 09/Feb/21 ]

Taking this on immediately as it is blocking resharding testing work at the moment.

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