-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Use Azure blob batch API to delete blobs in batches #114566
Merged
nicktindall
merged 46 commits into
elastic:main
from
nicktindall:ES-9777_support_batch_deletions_in_azure
Oct 24, 2024
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
8e08e60
Experimental batch-blob deletion support WIP
nicktindall 8f67b0a
Handle null responses on success?! (temporary workaround)
nicktindall 86a59e9
Check error responses, track metrics
nicktindall 22cfdb8
Skip metrics on batched requests more explicitly
nicktindall 83ef063
Test that batch delete is tracked
nicktindall 798b83b
Undo broken request time tracking
nicktindall 57286c4
Merge remote-tracking branch 'origin/main' into ES-9777_support_batch…
nicktindall 219cf40
Use batch delete when deleting blob directory
nicktindall d0fc6ee
Fix naming
nicktindall c566966
Tidy up response templates
nicktindall d5aa10f
Remove most debug logging from AzureHttpHandler
nicktindall 87b08e6
Submit all batch deletes concurrently
nicktindall b034c50
Don't swallow exception
nicktindall ebc47e8
Track "blob batch" instead of "batch delete" (we can't be specific wi…
nicktindall e3cb397
Fix date/time format
nicktindall 5df3384
Add test for batch delete failure metrics/behaviour
nicktindall caf1ab7
Merge remote-tracking branch 'origin/main' into ES-9777_support_batch…
nicktindall 05e01c1
Remove redundant code from metrics handler
nicktindall e744cbd
Make max deletes per batch configurable
nicktindall 6115885
Improve handling of individual batch failures
nicktindall b08d6af
Make batches execute concurrently
nicktindall 06a3b5d
Merge remote-tracking branch 'origin/main' into ES-9777_support_batch…
nicktindall 84211f9
Remove redundant null check
nicktindall aa7ecfb
Don't close response body
nicktindall 1b12a63
Log to indicate which authentication method we're using
nicktindall 9a3718a
Assert that the non-failed deletes succeeded
nicktindall 2f37338
Write our own subscriber to the delete tasks to more accurately captu…
nicktindall dda6e8a
Merge remote-tracking branch 'origin/main' into ES-9777_support_batch…
nicktindall d546ec5
Use reactor to list and delete
nicktindall 8588247
Merge remote-tracking branch 'origin/main' into ES-9777_support_batch…
nicktindall 4641580
Add docs for max_concurrent_batch_deletes
nicktindall 6b94158
Tidy up
nicktindall 8efb2e1
Remove SocketAccess#doPrivilegedVoidExceptionExplicit
nicktindall 09f27b8
Naming
nicktindall b913fd0
Limit amount of suppressed errors
nicktindall ac772ec
Randomise max_concurrent_batch_deletes
nicktindall dfe0d9c
Comment wording
nicktindall 6818ec7
Tidy
nicktindall eab8700
Update docs/changelog/114566.yaml
nicktindall 93bfe04
Update docs/reference/snapshot-restore/repository-azure.asciidoc
nicktindall d9ce4b5
Add info log prefix pattern
nicktindall 84ff3c2
Indicate the total count of errors when it exceeds our limit for incl…
nicktindall 103aec4
Catch Exception instead of RuntimeException
nicktindall 6c4697e
Set maximum for max_concurrent_batch_deletes
nicktindall beae254
Merge remote-tracking branch 'origin/main' into ES-9777_support_batch…
nicktindall 5f1143e
Fix batch error handling
nicktindall 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 114566 | ||
summary: Use Azure blob batch API to delete blobs in batches | ||
area: Distributed | ||
type: enhancement | ||
issues: [] |
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,18 +18,15 @@ | |
requires org.apache.logging.log4j; | ||
requires org.apache.logging.log4j.core; | ||
|
||
requires com.azure.core; | ||
requires com.azure.http.netty; | ||
requires com.azure.storage.blob; | ||
requires com.azure.storage.common; | ||
requires com.azure.identity; | ||
|
||
requires io.netty.buffer; | ||
requires io.netty.transport; | ||
requires io.netty.resolver; | ||
requires io.netty.common; | ||
|
||
requires reactor.core; | ||
requires reactor.netty.core; | ||
requires reactor.netty.http; | ||
requires com.azure.storage.blob.batch; | ||
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. IntelliJ seemed to optimize the |
||
} |
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.
This is the version consistent with the others from the BOM