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

Logback's TimeBasedRollingPolicy can't rename/move a file across filesystems

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.11
    • Component/s: logback-core
    • Labels:
      None
    • Environment:

      AIX 6.1, WebSphere 8.0.0.1

      Description

      Logback can't roll log files to a different filesystem than the active log using TimeBasedRollingPolicy (and RenameUtil.rename()) on AIX and possibly other Unix/Linux-based operating systems. Per the Java 6 File.renameTo() method JavaDoc, "The rename operation might not be able to move a file from one filesystem to another". The JavaDoc for RenameUtil.rename() states that it should fall back to renaming by copying, but the code doesn't do that. The renameByCopying() method is never called.

        Attachments

          Activity

            People

            • Assignee:
              ceki Ceki Gülcü
              Reporter:
              djpotter Daniel Potter
            • Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: