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

Make PeriodicJob aware of cancelation at global shutdown

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.7, 4.4.0-rc2, 4.7.0
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4, v4.2, v4.0
    • Sprint:
      Service arch 2020-04-20, Service arch 2020-05-04
    • Linked BF Score:
      7

      Description

      Starting a PeriodicJob that is not in the NOT_SCHEDULED state causes an invariant failure (see here). However, a PeriodicJob might get stopped before it's even started if its process receives a kill signals before it has fully initialized. To tolerate such scenarios, PeriodicJob should check if shutdown is in progress and quick return before checking the invariant.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: