First of all, File::Tail is on CPAN - there is no need to post it all here.
Having said that, I think you are running into some kind of a timing problem. File::Tail tries to be clever about detecting when a file has been rotated, and it seems that,
under very heavy loads, it sometimes gets a false positive (it thinks that the file has been rotated when it really has not).
I've never been able to generate a reliable test case that would trigger that bug so I could debug it.
My advice is:
- See if bumping maxinterval to a higher value helps
- See if bumping adjustfter to a higher value helps
- (may not be feasible for your application) put 0 or a small positive value into reset_tail - that will make it restart from the end of the file, or n lines from the end of the file - which might be better for your application that starting from the very beginning.
Hope this helps
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
Outside of code tags, you may need to use entities for some characters:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||