Ctest created HADOOP-16971: ------------------------------ Summary: testFileContextResolveAfs failed to delete created symlink and pollute subsequent test run. Key: HADOOP-16971 URL: https://issues.apache.org/jira/browse/HADOOP-16971 Project: Hadoop Common Issue Type: Bug Components: common, test Affects Versions: 3.2.1, 3.4.0 Reporter: Ctest Attachments: HADOOP-16971.000.patch
In the test `testFileContextResolveAfs`, the symlink `TestFileContextResolveAfs2` (linked to `TestFileContextResolveAfs1`) was not deleted as intended in the first run, thus the test will fail in the second run. The reason is that this test uses org.apache.hadoop.fs.FileSystem to handle the deletion of symlink, which 1. does not support symlink. 2. deletes `TestFileContextResolveAfs1` before `TestFileContextResolveAfs2` if both links passed into `deleteOnExit` in any order, because of the ordering of paths to be deleted in the TreeSet `deleteOnExit`. When `TestFileContextResolveAfs1` has been deleted, `TestFileContextResolveAfs2` became an orphan symlink and is now considered as a non-exisitent path by org.apache.hadoop.fs.FileSystem, thus its deletion cannot be completed. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: common-dev-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-dev-h...@hadoop.apache.org