[SERVER-78741] Add test to check performance of cancelling many client connections in mongo executable Created: 06/Jul/23  Updated: 07/Dec/23

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

Type: Task Priority: Major - P3
Reporter: Adi Zaimi Assignee: Backlog - Cluster Scalability
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Cluster Scalability
Participants:

 Description   

SERVER-78409 modified removing (erasing) a cancelled client from _outstandingQueries by query instead of an iterator (which can be invalid). New behavior is to traverse the linked list to find query and remove. Since the list should be small, there should be no performance impact, however we need to add a test to measure the performance. It may be especially important if we have to cancel many client connections at the same time, thus performing a linear lookup in the list for every client entry. If it turns out that there is a performance issue, we should consider replacing the list with a map.


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