On Wed, 14 Jan 2009, David Golden wrote: > I tested the 0.31012 tarball from CPAN (rather than just trunk). I get > the error at the end of the email -- even *with* File::Path upgraded > to 2.07. I've seen this stuff periodically on Windows in a lot of > situations (particularly in CPAN::Reporter). Without really > understanding the details, my wild guess is that calling "unlink" > schedules a file for deletion and there is a lag before it executes > and subsequent checks for deletion sometimes fail. I've been able to > make the problems "go away" by sleeping a couple seconds before > checking that files are removed. But that's a hack, not a real fix. > > Anyone else experience this? Any ideas?
In my experience this is typically caused by interference of virus checkers. They often queue up files written to disk for background checking and may delay deletion until they are done with them. In a slightly different pattern I also saw this in Perl tests when the same output file name was being re-used by a subsequent test, and creating the file the second time failed with $! saying something like "delete pending". I've gotten rid of all of these problems by adding all my build and test directories to exclusion lists of the virus checkers. Makes things run slightly faster too. :) Cheers, -Jan
