[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: |
|
||||||||
| 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: |
| Comment by Githook User [ 20/Nov/23 ] |
|
Author: {'name': 'Patrick Freed', 'email': 'patrick.freed@mongodb.com', 'username': 'patrickfreed'}Message: |