[ http://issues.apache.org/jira/browse/AVALON-7?page=all ] Shash Chatterjee closed AVALON-7: ---------------------------------
> 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 > Assignee: 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: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
