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

SizeAndTimeBasedRollingPolicy misbehavior after %i index reaches 999

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.2.3
    • OS: Ubuntu 18.04.4 LTS

      java: java version "1.8.0_181"
      Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
      Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

       

    Description

      I'm using SizeAndTimeBasedRollingPolicy.
      When '%i' file index reaches 999 it stops deleting the old files and totalSizeCap is not respected any more.
      This soon leads to disk full issues (as logging in my case was fast enough)

      I'm attaching a java example with a simple logging configuration to demonstrate this.
      You have to run it just for a couple off minutes to reach file index 999
      Use maven install to build.
      Untar the generated tar.gz file to some place and run the example with
      java -jar testartifact-1.0.0-20200206.jar

      Attachments

        Activity

          People

            logback-dev Logback dev list
            ygeorge George Yanev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: