[SERVER-82676] gRPC unit tests reuse port, causing conflicts with concurrently running tests Created: 01/Nov/23 Updated: 05/Jan/24 Resolved: 13/Nov/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.2.1, 7.3.0-rc0 |
| 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-13, Service Arch 2023-11-27 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 31 | ||||||||
| Description |
|
Most of the gRPC-related unit tests rely on a constant to determine which port to listen to. This can lead to spurious test failures if two tests happen to be running at the same time. For example, in this failure, you can see in the logged metadata that connections from transport_test (pid 9264) interfered with the "AllowInvalidClientCertificate" test of grpc_transport_layer_test (pid 3140). Likewise, connections from tranport_layer_test interfered with "MarkKillOnGRPCClientDisconnect" test of transport_test. We should update these tests to rely on ephemeral ports to avoid these kinds of collisions. |
| Comments |
| Comment by Githook User [ 05/Jan/24 ] |
|
Author: {'name': 'Patrick Freed', 'email': 'patrick.freed@mongodb.com', 'username': 'patrickfreed'}Message: |
| Comment by Githook User [ 10/Nov/23 ] |
|
Author: {'name': 'Patrick Freed', 'email': 'patrick.freed@mongodb.com', 'username': 'patrickfreed'}Message: |