Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-92333

Audit use of long lived CancellationSources

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability

      Scheduling tasks on a cancellation token will keep those tasks alive in-memory until the token's underlying CancellationSource is destructed. If a cancellation source stays alive for a long time and has many tasks scheduled on it, this can lead to significant memory use, as in SERVER-92236. We should audit our use of cancellation sources for any that can live for a long time and probably rewrite them to at least periodically be cleared.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: