[SERVER-81082] Remove condition variable in ReshardingCloneFetcher Created: 14/Sep/23  Updated: 25/Jan/24

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

Type: Improvement Priority: Minor - P4
Reporter: Jiawei Yang 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   

In SERVER-80482, we added a condition variable to make sure the ReshardingCloneFetcher's destructor exit after all reader/writer threads exit. The condition variable should not be necessary but it turns out if we don't cancel the token in destructor, some threads won't quit. If we can figure out the reason behind that, we should be able to get rid of the condition variable. 


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