Peidian Li created FLINK-16394:
----------------------------------
Summary: LocalFileSystemTest.testRenameFileWithNoAccess failed when Using root to execute MVN test on Linux system
Key: FLINK-16394
URL:
https://issues.apache.org/jira/browse/FLINK-16394 Project: Flink
Issue Type: Bug
Components: Tests
Affects Versions: 1.10.0
Reporter: Peidian Li
{code:java}
[INFO] Running org.apache.flink.core.plugin.DirectoryBasedPluginFinderTest
[ERROR] Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.268 s <<< FAILURE! - in org.apache.flink.core.fs.local.LocalFileSystemTest
[ERROR] testRenameFileWithNoAccess(org.apache.flink.core.fs.local.LocalFileSystemTest) Time elapsed: 0.032 s <<< FAILURE!
java.lang.AssertionError
at org.apache.flink.core.fs.local.LocalFileSystemTest.testRenameFileWithNoAccess(LocalFileSystemTest.java:294)
[ERROR] Tests run: 7, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 0.598 s <<< FAILURE! - in org.apache.flink.util.FileUtilsTest
[ERROR] testDeleteDirectory(org.apache.flink.util.FileUtilsTest) Time elapsed: 0.002 s <<< FAILURE!
java.lang.AssertionError: this should fail with an exception
at org.apache.flink.util.FileUtilsTest.testDeleteDirectory(FileUtilsTest.java:169)
{code}
I think it's similar to the problem of FLINK-2198[FLINK-2198|
https://issues.apache.org/jira/browse/FLINK-2198]
{{File.setWritable()}} does not work on Linux when using root.
When I use gitlab Ci, I found this problem.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)