commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Akolkar" <rahul.akol...@gmail.com>
Subject Re: [io] Re: [nightly build] io failed.
Date Mon, 14 Aug 2006 22:22:24 GMT
On 8/11/06, Henri Yandell <flamefew@gmail.com> wrote:
> > On 11 Aug 2006 13:10:48 -0000, psteitz@apache.org <psteitz@apache.org> wrote:
> > > Failed build logs:
> > > http://people.apache.org/~psteitz/commons-nightlies/20060811/io.log
>
> Brain dumping in case anyone else is looking at this too.
>
> This error is in the isNewer test.
>
<snip/>
>
> It creates a file, pauses for a second, creates another file, pauses
> for another second and then creates another file. I suspect the bug is
> that pausing for a second still ends up with a file with the same
> timestamp for some reason or other. Easiest fix would be to pause for
> a little longer than a second I suspect. It doesn't always happen.
>
<snap/>
>
> The same spin method is used here to pause for a second. It looks like
> it's overkill implementation wise; I thought you could trust
> Thread.sleep(n) to pause for at least n milliseconds - unless an
> InterruptedException happens (which in this case will fail the test).
>
> Bumping up to 2000 surprisingly still saw errors happening. I also
> don't get why the FileUtilsTestCase one is seen more often than the
> FileFilter one.
>
<snip/>

Thats a troublemaker. Seems to be some timing subtlety on the
nightlies box that escapes me (being the original author of that
test).

-Rahul


> Hen
>

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


Mime
View raw message