From d107931fc7299a91743a38d73ec25a3d33d93abf Mon Sep 17 00:00:00 2001 From: Mukund Thakur Date: Wed, 29 May 2024 11:27:09 -0500 Subject: [PATCH] HADOOP-19188. Fix TestHarFileSystem and TestFilterFileSystem failing after bulk delete API got added. (#6848) Follow up to: HADOOP-18679 Add API for bulk/paged delete of files and objects Contributed by Mukund Thakur --- .../test/java/org/apache/hadoop/fs/TestFilterFileSystem.java | 1 + .../src/test/java/org/apache/hadoop/fs/TestHarFileSystem.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFilterFileSystem.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFilterFileSystem.java index 3d8ea0e826..1b42290ced 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFilterFileSystem.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFilterFileSystem.java @@ -148,6 +148,7 @@ public Token[] addDelegationTokens(String renewer, Credentials creds) FSDataOutputStream append(Path f, int bufferSize, Progressable progress, boolean appendToNewBlock) throws IOException; + BulkDelete createBulkDelete(Path path) throws IllegalArgumentException, IOException; } @Test diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestHarFileSystem.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestHarFileSystem.java index 0287b7ec1f..26d0361d6a 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestHarFileSystem.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestHarFileSystem.java @@ -257,6 +257,8 @@ FSDataOutputStream append(Path f, int bufferSize, Progressable progress, boolean appendToNewBlock) throws IOException; Path getEnclosingRoot(Path path) throws IOException; + + BulkDelete createBulkDelete(Path path) throws IllegalArgumentException, IOException; } @Test