P is for Practical | |
PerlMonks |
Re^4: Testing for readdir failureby Bob Cook (Acolyte) |
on Apr 23, 2013 at 02:45 UTC ( [id://1030027]=note: print w/replies, xml ) | Need Help?? |
> It also became clear that you never clarified what exactly fails. The program runs weekly. Many weeks, it "fails" on a small percentage of directories. Those directories were last changed years ago. And yet, on this run, according to the results of readdir, there were some things missing that were present on previous runs, AND are present when I go to look at them after the failure. (And by the way, each week it fails on a different small subset of directories.) > How do you expect us to reproduce and catch unidentified errors? I don't know how to reproduce it. That's a real problem. I was looking for possible side effects from readdir that the program could check for. And some of the suggestions have been quite helpful, including yours. > Are you even sure these are errors and not just race conditions because the content of a directory changed in the meantime? I hope the first part of this text above answers this. Most of the directories haven't changed.
In Section
Seekers of Perl Wisdom
|
|