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

Sling Event - HistoryCleanUpTask removes Jobs younger than configured

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Event 4.0.0
    • Event 4.0.2
    • Extensions
    • None

    Description

      The HistoryCleanUpTask has to remove all Jobs stored in the JCR older than the given parameter age (a number of minutes).
      The current implementation traverses the /var/eventing/jobs tree where parts of the path define the date of a job. Problem: the comparison of the job- and removeDate is wrong. First it compares the years, than months, weeks and days but this doesn't work.

      I've forked the project on github and wrote a test and fix. Further I added a test dependency for sling-mock in the pom.xml: Fixes HistoryCleanUpTask date comparison.

      Please have a look and if you like I can create a pull request on GitHub.

      Attachments

        1. SLING-5422_cnagel.patch
          12 kB
          Stefan Seifert

        Issue Links

          Activity

            People

              cziegeler Carsten Ziegeler
              cnagel Christoph Nagel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: