Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1240

TimeBasedArchiveRemover doesn't delete files on startup when using hourly rotation

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.3.0-alpha5
    • 1.2.3, 1.3.0-alpha1
    • logback-core
    • None

    Description

      For hourly rotation and only hourly rotation, when periodBarriersCrossed is calculated the diff is casted to int. This makes the result negative resulting in no archives being deleted. Test case is included in the pull request to demonstrate the issue.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            asaarilahti asaarilahti
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: