My bad. I found my error from your comment "The tmp file could be deleted if the target compression file exists already." I started to look at maybe the file already exists. I see in our logback xml configuration:
<fileNamePattern>logs/server.log.${PORT}.%d{yyyy-MM-dd-hh}.gz</fileNamePattern>
The "hh" should actually be "HH". Since we're not doing that, it can only store hours 0-12, all other times the compression will encounter the file already exist error. I am able to verify that after I changed it to "HH", the problem goes away, and the .tmp file are no longer being generated. Thanks for the tip!
|