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

Make PeriodicRunner interrupt blocked operations on stop

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.2.7, 4.4.0-rc4, 4.7.0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • v4.4, v4.2, v4.0
    • Service Arch 2020-03-23, Service Arch 2020-04-06
    • 0

    Description

      The stop method for PeriodicRunner waits for the runner thread to return here. This could indefinitely block the thread that called stop() if the runner thread is running a job here that never returns.

      For instance, the periodic refresh for LSC could be waiting here when the signal handler thread attempts to stop its job here, which makes the mongod process hang during shutdown.

      Attachments

        Activity

          People

            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: