Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
In FileSystemContractBaseTest::tearDown() method, it cleans up the path("/test") directory, which will be qualified as /test (against root instead of working directory because it's absolute):
@Override protected void tearDown() throws Exception { try { if (fs != null) { fs.delete(path("/test"), true); } } catch (IOException e) { LOG.error("Error deleting /test: " + e, e); } }
But in the test, it uses path("test") sometimes, which will be made qualified against the working directory (e.g. /user/bob/test).
This makes some tests fail intermittently, e.g. ITestS3AFileSystemContract. Also see the discussion in HADOOP-13934.
Attachments
Attachments
Issue Links
- breaks
-
HADOOP-14192 Aliyun OSS FileSystem contract test should implement getTestBaseDir()
- Resolved
- contains
-
HADOOP-16160 TestAdlFileSystemContractLive fails in branch-2.8
- Resolved
- is related to
-
HADOOP-14180 FileSystem contract tests to replace JUnit 3 with 4
- Resolved
- relates to
-
HADOOP-14036 S3Guard: intermittent duplicate item keys failure
- Resolved