AmarGhugare opened a new pull request, #4479: URL: https://github.com/apache/logging-log4j2/pull/4479
A `TimeFilter` configured for 22:00-02:00 rejects a 01:00 event when initialized that morning. The same problem occurs when the first event after several idle days arrives after midnight: the cached interval starts that evening instead of the previous one. Consider the previous day's interval when initializing an overnight filter and when refreshing expired boundaries. This preserves inclusive endpoints and the existing daylight-saving duration behavior without changing the ordinary filtering path. Add 16 regression cases for startup, idle gaps, boundaries, and time zones, including both daylight-saving transitions in Los Angeles. Eleven cases fail before the fix; all 16 pass afterward, together with the six existing `TimeFilterTest` cases. ## Validation ```text ./mvnw -B -ntp -pl :log4j-core-test -am -Dtest=TimeFilterTest,TimeFilterOvernightTest -Dsurefire.failIfNoSpecifiedTests=false -DskipITs verify ``` Passed with JDK 17 across all six selected reactor modules, including formatting, license, SpotBugs, and API compatibility checks. All 22 selected tests pass in each of four Surefire executions. The full test suite and integration tests were not run locally. ## Checklist - [x] Based on `2.x`. - [x] Core reactor verification passes with the focused test selection above. - [x] Changelog entry included under `src/changelog/.2.x.x`. - [x] Regression tests provided. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
