Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-5666

Unscheduling a job should remove corresponding node

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Event 4.0.0, Event 4.0.2
    • Event 4.1.0
    • Extensions
    • None

    Description

      Unscheduling a previously scheduled job does not remove the corresponding node below /var/eventing/scheduled-jobs:

      ScheduledJobInfo info =  jobManager.createJob(topic).schedule().at(date).add();
      // creates /var/eventing/scheduled-jobs/c204a1ad-b161-4e76-9dfe-4152bca088cf
      info.unschedule();
      // /var/eventing/scheduled-jobs/c204a1ad-b161-4e76-9dfe-4152bca088cf persists
      

      This can lead to the situation where ScheduledJobHandler#scan picks the node back up again and reschedules the job.

      This is a regression introduced by SLING-4680. Before the changes of SLING-4680, JobSchedulerImpl#unschedule took care of removing the node. Currently, this is not being done anymore.

      Attachments

        Issue Links

          Activity

            People

              cziegeler Carsten Ziegeler
              obrist Damien Obrist
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: