Uploaded image for project: 'JBoss Log Manager'
  1. JBoss Log Manager
  2. LOGMGR-351

Rotation calculation does not work in all cases

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.5.Final, 3.1.0.Final
    • None
    • None
    • None

      From: https://github.com/jboss-logging/jboss-logmanager/pull/468
      It is not possible to use rotation periods longer then DAYS, because java.time.ZonedDateTime#truncatedTo throws an exception for such periods.

      java.time.temporal.UnsupportedTemporalTypeException: Unit is too large to be used for truncation
      

      Lower dates do not seem to calculate correctly either. Hour and minute do not seem to work. Using Instant.now() gives the time in UTC which could affect, given the time zone (zone id), when something might be rotated. While the JDK itself uses Instant.now() for records, we need to validate how this works with rotation.

              jperkins-rhn James Perkins
              jperkins-rhn James Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: