[SERVER-55322] Integrate CancelableOperationContext into ReshardingOplogFetcher Created: 19/Mar/21  Updated: 29/Oct/23  Resolved: 08/Apr/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 5.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Janna Golden
Resolution: Fixed Votes: 0
Labels: PM-234-M3, PM-234-T-error-flow
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding 2021-04-19
Participants:
Story Points: 1

 Description   

Note that the OperationContext constructed within the callback given to Shard::runAggregation() cannot use the shared_ptr<executor::TaskExecutor> given to ReshardingOplogFetcher::schedule() for the CancelableOperationContext. This is because all of its threads may already be consumed waiting for the Shard::runAggregation() task being run on the fixed executor to finish. See also the CancelableOperationContextFactory class mentioned in SERVER-55306.



 Comments   
Comment by Githook User [ 08/Apr/21 ]

Author:

{'name': 'jannaerin', 'email': 'golden.janna@gmail.com', 'username': 'jannaerin'}

Message: SERVER-55322 Integrate CancelableOperationContext into ReshardingOplogFetcher
Branch: master
https://github.com/mongodb/mongo/commit/155593af2e6745f9012b7f3ff397a9d62944cfc2

Generated at Thu Feb 08 05:36:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.