excalibur-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shash Chatterjee (JIRA)" <j...@apache.org>
Subject [jira] Created: (AVALON-7) Logkit/ResolvingFileStrategy assumes FIle.listFiles() returns in oldest-to-newest order
Date Sat, 23 Jul 2005 13:14:13 GMT
Logkit/ResolvingFileStrategy assumes FIle.listFiles() returns in oldest-to-newest order

         Key: AVALON-7
         URL: http://issues.apache.org/jira/browse/AVALON-7
     Project: Avalon
        Type: Bug
 Environment: OS: Fedora Core 4, i686, kernel 2.6.12
JDK: Sun JDK-1.4.2_08
    Reporter: Shash Chatterjee
 Assigned to: Shash Chatterjee 

On specified environment, RevolvingFileStrategtTestCase.testFullRotation() fails.
The cause is that ResolvingFileStrategy.calculateInitialRotation() assumes that the oldest
file will be returned at index 0.  At least on this platform, the files matching the given
pattern seem to be returned in random order.

Fix is to actually find the minimum rotation, mark it's index in the returned array, then
use the index when calculating time for the oldest file.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org
For additional commands, e-mail: dev-help@excalibur.apache.org

View raw message