You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by Nathan Friess <na...@gmail.com> on 2019/05/27 21:36:12 UTC

LOG4J2-2575: CronExpression.getTimeBefore() bug

Hi,

I submitted https://issues.apache.org/jira/browse/LOG4J2-2575 along with 
a patch a while ago and there hasn't been any activity on it since then.

The basic problem is that sometimes timestamp variables have 
milliseconds set in them, such as the argument to getTimeBefore() when 
used to roll logs periodically, but other times like the preFireTime 
variable don't have milliseconds set.  I marked the bug as critical 
because it was causing data loss when rolled files would overwrite older 
logs on some days, depending on whether the rolling code ran at exactly 
0 milliseconds or not.

How would I go about getting that patch included in the next release?

Thanks,

Nathan Friess