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

Join the mirroring executor on shutdown

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • Internal Code
    • Service Arch
    • Fully Compatible
    • ALL
    • v7.0, v6.0, v5.0, v4.4
    • Service Arch 2023-06-12, Service Arch 2023-06-26
    • 12

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: