We are migrating this Jira service to Github. Issue creation is no longer possible on this server and must be done on Github. However, you may browse issues without an account. Editing or commenting on existing issues requires an account.

Please support SLF4J/logback/reload4j projects via Github donations and sponsorship.

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

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

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.0.11
    • None
    • logback-core
    • None
    • 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

          Loading...
          We are migrating this Jira service to Github. Issue creation is no longer possible on this server and must be done on Github. However, you may browse issues without an account. Editing or commenting on existing issues requires an account.

          Please support SLF4J/logback/reload4j projects via Github donations and sponsorship.

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

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

          Details

            • Icon: Bug Bug
            • Resolution: Fixed
            • Icon: Major Major
            • 1.0.11
            • None
            • logback-core
            • None
            • 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

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

                    Dates

                      Created:
                      Updated:
                      Resolved:

                      People

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

                        Dates

                          Created:
                          Updated:
                          Resolved: