log rotation error/bug

Marvin Addison marvin.addison at gmail.com
Sat Dec 19 08:23:29 EST 2015

> The second error, about
> ch.qos.logback.core.rolling.helper.AsynchronousCompressor looks like the
> culprit for the log file mess.  I have no idea why it would have been doing
> any rotation at 15:05, though. Maybe the first thread crash/termination
> somehow caused the later errors.

I'm fairly certain the crash somehow triggered creation of new file
appenders before the first set had been torn down. The bug Daniel cited,
and what we've observed in own apps that use logback, is that .tmp files
are always caused by multiple appenders attached to the same file (when
compression is enabled). If this problem becomes really annoying, you can
try adding prudent="true" [1] to your appenders, which should fix it at the
cost of reduced throughput. Or you could consider not compressing files,
but I recall there are other undesirable side effects of multiple appenders
on the same file.

Best case you would address the root problem of creating multiple appenders
on the same files.


[1] http://logback.qos.ch/manual/appenders.html#FileAppender
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20151219/6ecf0347/attachment.html>

More information about the users mailing list