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

Join the mirroring executor on shutdown

    • Service Arch
    • Fully Compatible
    • ALL
    • v7.0, v6.0, v5.0, v4.4
    • Service Arch 2023-06-12, Service Arch 2023-06-26
    • 12

      MirrorMaestro is a decoration on ServiceContext, responsible for mirroring read operations received on the primary. Reads are mirroring via a ThreadPoolTaskExecutor, that internally uses a ThreadPool to run the mirroring operation in the background and off of the critical execution path.

      As part of shutting down a mongod server, we shutdown this service from here. The shutdown task, however, doesn't join the executor threads. We should join the executor threads to make sure they all return before process shutdown.

            Assignee:
            jennifer.wang@mongodb.com Jennifer Wang (Inactive)
            Reporter:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: