Hi Scott and Pual,

I tried to fix the bug with tailing on VFSLogFilePatternReceiver according
to the method I explained in my previous mail. According to the provided
interface of VFS, I think it is the best way of fixing this problem. So I
implemented it and tested it under different scenarios.
After my new fix, when the log file which is accessed through http (or some
other protocol) receives log events frequently (without time gaps of more
than 10 or 15 seconds), they are loaded on the fly in to Chainsaw and it
works fine. But when new log events are not added to the log file for some
time (more than about 15 seconds), 'rac.getInputStream()' (rac =
RandomAccessContent Object) method call gives an exeption and execution gets
stuck. Even if new log events are added to the log file later, it remains
stuck. But for log files on the local file system, this method works fine. I
sent the 2 patches containing changes to the VFSLogFilePatternReceiver class
in Chainsaw and LogFilePatternReceiver in log4j. Please check it.
I experimented many different ways of overcomming this issue, but it
remains. I think this is a bug in Commons-VFS and I put a mail to their
mailing list and hopefully they will suggest some solution for that.
Sorry for taking too long for this fix due to this unexpected problem with
VFS. While trying to fix this issue completely, I'll start working on my
other tasks as well.

Thanks,
~Isuru

Reply via email to