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

Improve documentation for using `ExecutorFuture` and `TaskExecutor`

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Service Arch
    • 2

    Description

      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.

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: