[SERVER-83279] Race in ServerSendsMultipleMessages unit test causes occasional test failures Created: 15/Nov/23  Updated: 22/Nov/23  Resolved: 20/Nov/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0, 7.2.0-rc2

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

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.2
Sprint: Service Arch 2023-11-27
Participants:
Linked BF Score: 147

 Description   

There is a race between the server handler finishing before the client handler in the ServerSendsMultipleMessages test, which happens because the client handler sends a message and then immediately returns, which in turn will cause runWithServers to shut down the server. If that happens before the server handler has had a chance to complete, the test fails because the server handler can't read the message from the client. We should update this test so that the client handler waits for some form of confirmation from the server end before exiting.



 Comments   
Comment by Githook User [ 22/Nov/23 ]

Author:

{'name': 'Patrick Freed', 'email': 'patrick.freed@mongodb.com', 'username': 'patrickfreed'}

Message: SERVER-83279 Wait for server handler to complete in ServerSendsMultipleMessages test
Branch: v7.2
https://github.com/mongodb/mongo/commit/ba9e77a55e7e5c14648c5cee18537ef14e985a14

Comment by Githook User [ 20/Nov/23 ]

Author:

{'name': 'Patrick Freed', 'email': 'patrick.freed@mongodb.com', 'username': 'patrickfreed'}

Message: SERVER-83279 Wait for server handler to complete in ServerSendsMultipleMessages test
Branch: master
https://github.com/mongodb/mongo/commit/31da41fbb4c7bc7d63a5608cba3d780307b02898

Generated at Thu Feb 08 06:51:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.