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

Improve documentation for using `ExecutorFuture` and `TaskExecutor`

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Service Arch
    • 2

      We should improve the documentation on how to properly manage the lifetime of a TaskExecutor when used with instances of ExecutorFuture.

      In particular, we have instances of TaskExecutor that create a Client for each executor thread, requiring the executor to properly shutdown and join before the ServiceContext is destroyed. The documentation should highlight that the executor (and its threads) will stay alive so long as executor futures (and asynchronous loops) are not destroyed.

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: