Integrate CancelableOperationContext into ReshardingOplogFetcher

XMLWordPrintableJSON

    • Fully Compatible
    • Sharding 2021-04-19
    • 1
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Janna Golden
            Reporter:
            Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: