Dispose of ReshardingDonorOplogIterator in ReshardingOplogApplier, even on cancellation

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 2021-05-17
    • 2
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This isn't currently a bug because locally-executing Pipelines and DocumentSources do not dereference their OperationContext during dispose() and destruction. However, we have established a pattern in ReshardingCollectionCloner and ReshardingTxnCloner to run a task on the cleanup executor. We should do the same with ReshardingDonorOplogIterator in ReshardingOplogApplier.

            Assignee:
            Max Hirschhorn
            Reporter:
            Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: