Skip to content

Integration tests fail on Windows #39904

@costin

Description

@costin

The latest master cannot run integration tests on windows due to:

Exception in thread "main" java.nio.file.AccessDeniedException: C:\Windows\elasticsearch
	at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
	at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
	at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
	at sun.nio.fs.WindowsFileSystemProvider.createDirectory(WindowsFileSystemProvider.java:504)
	at java.nio.file.Files.createDirectory(Files.java:674)
	at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
	at java.nio.file.Files.createDirectories(Files.java:767)
	at org.elasticsearch.tools.launchers.TempDirectory.main(TempDirectory.java:52)

It looks like the temporary folder is not set which causes the default/system folder (C:\Windows) to be used instead which obviously fails.

From try-outs it looks commit 465343f introduced this change in behavior.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions