-
Notifications
You must be signed in to change notification settings - Fork 5.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
br/storage: adapt copier for azure and gcs #59328
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: hillium <[email protected]>
Signed-off-by: hillium <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @YuJuncen. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #59328 +/- ##
================================================
+ Coverage 73.0489% 74.7431% +1.6942%
================================================
Files 1684 1736 +52
Lines 466386 490085 +23699
================================================
+ Hits 340690 366305 +25615
+ Misses 104751 100710 -4041
- Partials 20945 23070 +2125
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: hillium <[email protected]>
} | ||
dstBlob := s.containerClient.NewBlobClient(s.withPrefix(spec.To)) | ||
|
||
// NOTE: `CopyFromURL` supports files up to 256 MiB, which might not be enough for huger regions? |
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.
a good catch. if the error code returned does not contain the detailed reason, we have to document the restriction in release notes.
srcName := es.objectName(spec.From) | ||
// A note here: | ||
// https://cloud.google.com/storage/docs/json_api/v1/objects/rewrite | ||
// It seems extra configuration is needed when doing cross-region copying. |
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.
we also need to document the special requirements.
[FORMAT CHECKER NOTIFICATION] Notice: To remove the 📖 For more info, you can check the "Contribute Code" section in the development guide. |
What problem does this PR solve?
Issue Number: close #(TBD)
Problem Summary:
When log backup enabled, restoring from azure blob storage and GCS is still impossible because they didn't implement
Copier
.What changed and how does it work?
This Added support to
CopyFrom
forAzureBlobStorage
andGCSStorage
.Check List
Tests
Tested Azure by
azurite
.Start PiTR by:
Restore a backup by:
Then restore with:
Check the restored data:
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.