Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RollingAppenderDirectCronTest.testAppender(LoggerContext, RollingFileAppender) is unreliable #3046

Open
garydgregory opened this issue Oct 1, 2024 · 0 comments
Labels
tests Pull requests or issues related to tests

Comments

@garydgregory
Copy link
Member

garydgregory commented Oct 1, 2024

Description

The test RollingAppenderDirectCronTest.testAppender(LoggerContext, RollingFileAppender) is unreliable:

[INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.52 s -- in org.apache.logging.log4j.core.appender.TlsSyslogAppenderTest
17:14:12.956 main ERROR The handler cannot be set to null
2024-10-01T21:14:13.119566500Z main ERROR Test `testAppender(LoggerContext, RollingFileAppender)` has failed, dumping status data... java.lang.AssertionError:
Expecting actual not to be empty
        at org.apache.logging.log4j.core.appender.rolling.RollingAppenderDirectCronTest$RolloverDelay.rolloverComplete(RollingAppenderDirectCronTest.java:107)
        at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.rollover(RollingFileManager.java:524)
        at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.rollover(RollingFileManager.java:479)
        at org.apache.logging.log4j.core.appender.rolling.CronTriggeringPolicy.rollover(CronTriggeringPolicy.java:153)
        at org.apache.logging.log4j.core.appender.rolling.CronTriggeringPolicy.access$100(CronTriggeringPolicy.java:40)
        at org.apache.logging.log4j.core.appender.rolling.CronTriggeringPolicy$CronTrigger.run(CronTriggeringPolicy.java:176)
        at org.apache.logging.log4j.core.config.ConfigurationScheduler$CronRunnable.run(ConfigurationScheduler.java:243)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:840)

Configuration

Version:

commit ad3c03d231913bfc9d613de91408c61649cc6d60 (HEAD -> 2.x, origin/2.x)
Author: Volkan Yazıcı <volkan@yazi.ci>
Date:   Tue Oct 1 21:09:31 2024 +0200

    Fix Awaitility usage in `SocketAppenderReconnectTest` (#3004)

Operating system:

Microsoft Windows [Version 10.0.19045.4780]

JDK:

openjdk version "17.0.12" 2024-07-16
OpenJDK Runtime Environment Temurin-17.0.12+7 (build 17.0.12+7)
OpenJDK 64-Bit Server VM Temurin-17.0.12+7 (build 17.0.12+7, mixed mode, sharing)
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Maven home: C:\java\apache-maven-3.9.9
Java version: 17.0.12, vendor: Eclipse Adoptium, runtime: C:\Program Files\Eclipse Adoptium\jdk-17.0.12.7-hotspot
Default locale: en_US, platform encoding: UTF-8
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

Logs

https://gist.github.com/garydgregory/2e982c9d0bb1e56457ec1984eff9d30e

Reproduction

cls && git log -1 && mvn clean verify
@ppkarwasz ppkarwasz added the tests Pull requests or issues related to tests label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Pull requests or issues related to tests
Projects
None yet
Development

No branches or pull requests

2 participants