You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Ralph Goers (Jira)" <ji...@apache.org> on 2022/05/20 22:29:00 UTC

[jira] [Commented] (LOG4J2-3512) Broken or flaky test: MutableThreadContextMapFilterTest

    [ https://issues.apache.org/jira/browse/LOG4J2-3512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17540313#comment-17540313 ] 

Ralph Goers commented on LOG4J2-3512:
-------------------------------------

Yeah - probably a Windows thing. I will look at it.

 org.apache.logging.log4j.core.filter.MutableThreadContextMapFilterTest.filterTest  Time elapsed: 1.273 s  <<< ERROR!
java.nio.file.FileSystemException: 
target\test-classes\testConfig.json: The process cannot access the file because it is being used by another process.

	at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
	at java.base/sun.nio.fs.WindowsFileCopy.copy(WindowsFileCopy.java:164)
	at java.base/sun.nio.fs.WindowsFileSystemProvider.copy(WindowsFileSystemProvider.java:283)
	at java.base/java.nio.file.Files.copy(Files.java:1295)
	at org.apache.logging.log4j.core.filter.MutableThreadContextMapFilterTest.filterTest(MutableThreadContextMapFilterTest.java:85)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

> Broken or flaky test: MutableThreadContextMapFilterTest
> -------------------------------------------------------
>
>                 Key: LOG4J2-3512
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3512
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Tests
>            Reporter: Matt Sicker
>            Priority: Major
>
> Example run: [https://github.com/apache/logging-log4j2/runs/6518697183?check_suite_focus=true]
> Seems to flake on Windows at least, though this test might just not work well in a noisy environment like CI.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)