You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ivan Gagarkin (Jira)" <ji...@apache.org> on 2023/09/07 08:34:00 UTC
[jira] [Created] (IGNITE-20374) ItFileTransferTest fails on Windows
Ivan Gagarkin created IGNITE-20374:
--------------------------------------
Summary: ItFileTransferTest fails on Windows
Key: IGNITE-20374
URL: https://issues.apache.org/jira/browse/IGNITE-20374
Project: Ignite
Issue Type: Bug
Reporter: Ivan Gagarkin
Some tests in the scope of the ItFileTransferTest [downloadFilesWhenDoNotHaveAccessToWrite, downloadNonReadableFiles, uploadFilesWhenDoNotHaveAccessToWrite, uploadNonReadableFiles] fail with the following error:
{{}}
{code:java}
java.lang.AssertionError: Expected: a future that completes with an exception that is an instance of org.apache.ignite.internal.network.file.exception.FileTransferException and error message that contains a string containing "Failed to create a file transfer stream" but: was completed successfully java.lang.AssertionError: Expected: a future that completes with an exception that is an instance of org.apache.ignite.internal.network.file.exception.FileTransferException and error message that contains a string containing "Failed to create a file transfer stream" but: was completed successfully{code}
{{}}
The reason of these failures on the Windows platform can be caused by the fact that File.setReadable() method may not work as is.
{quote}{{A convenience method to set the owner's read permission for this abstract pathname.
On some platforms it may be possible to start the Java virtual machine with special privileges
that allow it to read files that are marked as unreadable.}}
{quote}
I think these tests can be disabled on Windows using @DisabledOnOs(OS.WINDOWS)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)