Skip to content

RollingAppenderDeleteAccumulatedCount1Test is unreliable #3003

Open
@garydgregory

Description

@garydgregory

Description

RollingAppenderDeleteAccumulatedCount1Test is unreliable

RollingAppenderDeleteAccumulatedCount1Test.testAppender:84 [target\rolling-with-delete-accum-count1\test\my-1.log, target\rolling-with-delete-accum-count1\test\my-2.log, target\rolling-with-delete-accum-count1\test\my-3.log, target\rolling-with-delete-accum-count1\test\my-4.log, target\rolling-with-delete-accum-count1\test\my-5.log, target\rolling-with-delete-accum-count1\test\test-3.log, target\rolling-with-delete-accum-count1\test\test-4.log, target\rolling-with-delete-accum-count1\test\test-5.log, target\rolling-with-delete-accum-count1\test\test-6.log, target\rolling-with-delete-accum-count1\test\test-7.log, target\rolling-with-delete-accum-count1\test\test-8.log, target\rolling-with-delete-accum-count1\test\test-9.log] expected:<11> but was:<12>

Configuration

Version: 2.x at 01125b1

Operating system:
Microsoft Windows [Version 10.0.19045.4780

JDK:
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

[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.260 s <<< FAILURE! -- in org.apache.logging.log4j.core.appender.rolling.RollingAppenderDeleteAccumulatedCount1Test
[ERROR] org.apache.logging.log4j.core.appender.rolling.RollingAppenderDeleteAccumulatedCount1Test.testAppender -- Time elapsed: 3.223 s <<< FAILURE!
java.lang.AssertionError: [target\rolling-with-delete-accum-count1\test\my-1.log, target\rolling-with-delete-accum-count1\test\my-2.log, target\rolling-with-delete-accum-count1\test\my-3.log, target\rolling-with-delete-accum-count1\test\my-4.log, target\rolling-with-delete-accum-count1\test\my-5.log, target\rolling-with-delete-accum-count1\test\test-3.log, target\rolling-with-delete-accum-count1\test\test-4.log, target\rolling-with-delete-accum-count1\test\test-5.log, target\rolling-with-delete-accum-count1\test\test-6.log, target\rolling-with-delete-accum-count1\test\test-7.log, target\rolling-with-delete-accum-count1\test\test-8.log, target\rolling-with-delete-accum-count1\test\test-9.log] expected:<11> but was:<12>
        at org.junit.Assert.fail(Assert.java:89)
        at org.junit.Assert.failNotEquals(Assert.java:835)
        at org.junit.Assert.assertEquals(Assert.java:647)
        at org.apache.logging.log4j.core.appender.rolling.RollingAppenderDeleteAccumulatedCount1Test.testAppender(RollingAppenderDeleteAccumulatedCount1Test.java:84)
        at java.base/java.lang.reflect.Method.invoke(Method.java:569)
        at org.apache.logging.log4j.core.test.junit.LoggerContextRule$1.evaluate(LoggerContextRule.java:136)

Reproduction

mvn clean install

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsPull requests or issues related to tests

    Type

    No type

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions