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

Make PeriodicRunner interrupt blocked operations on stop

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.7, 4.4.0-rc4, 4.7.0
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4, v4.2
    • Sprint:
      Service Arch 2020-03-23, Service Arch 2020-04-06
    • Linked BF Score:
      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

          Issue Links

            Activity

              People

              Assignee:
              amirsaman.memaripour Amirsaman Memaripour
              Reporter:
              amirsaman.memaripour Amirsaman Memaripour
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: