Hi Volkan,

On Mon, 20 Nov 2023 at 09:36, Volkan Yazıcı <vol...@yazi.ci> wrote:
>
> As Gary (the only Windows user among the active Log4j maintainers,
> AFAIK) has noticed several times, Log4j tests on Windows are pretty
> unstable. It not only fails on Gary's laptop, but Piotr and I need to
> give Windows tests in CI a kick on a regular basis. Approximately one
> out of three CI runs fails on Windows. Piotr already improved the
> situation extensively, though there are still several leftovers that
> need attention.
>
> Unless somebody steps up to improve the unstable Windows tests, I
> would like to disable those only for the WIndows platform.

Please don't. Windows has an annoying file locking policy that
prevents users from deleting files with open file descriptors, but
that is one of the few ways to detect resource leakage we have.

Tests running on *NIXes will ignore problems with open file
descriptors and delete the log files, but on a production system those
leaks will accumulate and cause application crashes. We had such a
leak, when we used `URLConnection#getLastModified` on a `jar:...` URL.
This call caused file descriptor exhaustion on both Windows and
*NIXes, but only the Windows test was able to detect it.

Piotr,
who never thought would ever defend Microsoft Windows.

PS: Gary reports the failures, but always runs the build again until
it succeeds, even on Friday 13th, when he had to wait until Saturday
14th for the test run to succeed.

Reply via email to