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

Concurrency Issue while rollover

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • logback-core
    • None

    Description

      We rollover roughly 15 large files every day to the same target archive directory. Once every few weeks one or more of the files fails to roll over and this is the exception we get. I believe it is because the 15 rollovers are done asyncronously and there is a race condition when isParentDirectoryCreationRequiredin is called on each rollover.

      Class: RenameUtil.class
      Error throw in Method: createMissingTargetDirsIfNecessary
      Race condition: isParentDirectoryCreationRequiredin FileUtil.class

      00:00:00,231 |-WARN in damofx.statserver.loggers.RollingFileAppenderDebug[MATH_PRICES] -
      RolloverFailure occurred. Deferring roll-over.ch.qos.logback.core.rolling.RolloverFailure:
      Failed to create parent directories for [/home/dsquare/fxprod/damofx/damofx-statserver/elk-rbs/data/2013-01-23/math_prices.log]

      Attachments

        Activity

          People

            logback-dev Logback dev list
            chrisjones Chris Jones
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: