SQOOP-3409: Fix temporary rootdir clean up in Sqoop-S3 tests
authorSzabolcs Vasas <vasas@apache.org>
Thu, 22 Nov 2018 14:49:16 +0000 (15:49 +0100)
committerSzabolcs Vasas <vasas@apache.org>
Thu, 22 Nov 2018 15:30:56 +0000 (16:30 +0100)
(Boglarka Egyed via Szabolcs Vasas)

src/test/org/apache/sqoop/testutil/S3TestUtils.java

index 2fc6061..c4c5c09 100644 (file)
@@ -426,8 +426,8 @@ public class S3TestUtils {
     }
 
     public static void tearDownS3IncrementalImportTestCase(FileSystem s3Client) {
-        cleanUpTargetDir(s3Client);
         cleanUpDirectory(s3Client, getTemporaryRootDirPath());
+        cleanUpTargetDir(s3Client);
         System.clearProperty(MAPREDUCE_OUTPUT_BASENAME_PROPERTY);
     }