Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-8004

[Broker-J] RollingPolicyDecorator excessively scans file system for rolled over files.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • qpid-java-6.0.8, qpid-java-6.1.4, qpid-java-broker-7.0.0
    • None
    • Broker-J
    • None

    Description

      When "Maximum Number of Rolled Files" is configured on FileLogger and the number of rolled files reaches the maximum, the broker can scans file system 60 times submitting a scan task every 5 seconds.

      RollingPolicyDecorator.ScanTask takes into account only file names to detect new rolled files. Thus, when the number of rolled files reaches the maximum on the FileLogger with SizeTriggeringPolicy rollover policy, the names of the rollover files remain the same as old files are deleted and remaining files are renamed to match fileName + ".%i" where %i is a file index starting from 0. RollingPolicyDecorator.ScanTask can be improved to take into consideration last modification or creation time to detect the new rolled over files correctly.

      Attachments

        Activity

          People

            Unassigned Unassigned
            orudyy Alex Rudyy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: