-
Notifications
You must be signed in to change notification settings - Fork 8.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HADOOP-18656: [ABFS] Adding Support for Paginated Delete for Large Directories in HNS Account #6409
Merged
steveloughran
merged 16 commits into
apache:trunk
from
anujmodi2021:HADOOP-18656-painatedDelete
Apr 4, 2024
Merged
Changes from 2 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
4580d3b
Added Support for Paginated Delete
e5605ac
PR Checks
4576cea
Merge branch 'trunk' into HADOOP-18656-painatedDelete to backport cha…
1b0e9a3
Defining API_Versions as Enums
5567944
Addressed Comments
42010aa
Removing Unused Imports
db95738
Checkstyle Fixes
197f3bc
Addressed Comments
1ab45fa
Yetus Rerun
169e1d7
Backmerge with trunk
2b502e4
Checkstyle Fix
d7d9d06
Refactoring Tests Code
f500632
Reverting Unrequired Codechange
a31d3ae
Addressing Comments
365aa51
Merge branch 'trunk' into HADOOP-18656-painatedDelete
47f6623
Checkstyle Checks
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,8 @@ | |
|
||
package org.apache.hadoop.fs.azurebfs.services; | ||
|
||
import java.util.List; | ||
|
||
import org.apache.hadoop.fs.azurebfs.extensions.EncryptionContextProvider; | ||
|
||
public final class AbfsClientUtils { | ||
|
@@ -31,4 +33,13 @@ public static void setIsNamespaceEnabled(final AbfsClient abfsClient, final Bool | |
public static void setEncryptionContextProvider(final AbfsClient abfsClient, final EncryptionContextProvider provider) { | ||
abfsClient.setEncryptionContextProvider(provider); | ||
} | ||
|
||
public static String getHeaderValue(List<AbfsHttpHeader> reqHeaders, String headerName) { | ||
for (AbfsHttpHeader header : reqHeaders) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you could probably do something involving java 8 streaming/filtering here if you wanted to... |
||
if (header.getName().equals(headerName)) { | ||
return header.getValue(); | ||
} | ||
} | ||
return ""; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason to cut this? I presume it means no tests are using it...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this code was not used any where so removed it