Make PeriodicRunner interrupt blocked operations on stop

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.2.7, 4.4.0-rc4, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.4, v4.2, v4.0
    • Service Arch 2020-03-23, Service Arch 2020-04-06
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Amirsaman Memaripour
            Reporter:
            Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: