objstore: extract AWS SDK related logic into separate client and extract common code of s3 like store#65561
Conversation
|
Hi @D3Hunter. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. DetailsInstructions 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. |
| name string | ||
| } | ||
|
|
||
| func (s *asyncWriter) start(ctx context.Context) { |
There was a problem hiding this comment.
this is from here
tidb/pkg/objstore/s3store/s3.go
Lines 1397 to 1407 in 1d4344f
| require.Equal(t, []byte("ABCDEFGHIJKLMNOPQRSTUVWXYZ"), res) | ||
| } | ||
|
|
||
| func TestPutAndDeleteObjectCheck(t *testing.T) { |
There was a problem hiding this comment.
moved to s3like permission test
| return nil | ||
| } | ||
| } | ||
| return errors.Trace(err) |
There was a problem hiding this comment.
previously we take other error as success
tidb/pkg/objstore/s3store/s3.go
Lines 708 to 715 in 1d4344f
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #65561 +/- ##
================================================
- Coverage 77.8487% 77.7342% -0.1146%
================================================
Files 1978 1905 -73
Lines 542181 530747 -11434
================================================
- Hits 422081 412572 -9509
+ Misses 118441 118168 -273
+ Partials 1659 7 -1652
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
| type multipartWriter struct { | ||
| svc S3API | ||
| createOutput *s3.CreateMultipartUploadOutput | ||
| completeParts []types.CompletedPart | ||
| } |
There was a problem hiding this comment.
renamed from
tidb/pkg/objstore/s3store/s3.go
Lines 154 to 158 in 87e4e71
| key string | ||
| } | ||
|
|
||
| func (u *multipartUploader) Upload(ctx context.Context, rd io.Reader) error { |
There was a problem hiding this comment.
abstracted from
tidb/pkg/objstore/s3store/s3.go
Lines 1391 to 1399 in 87e4e71
|
/retest |
|
/retest |
|
@D3Hunter: PRs from untrusted users cannot be marked as trusted with DetailsIn response to this:
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. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: joechenrh, Leavrth The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@D3Hunter: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. I understand the commands that are listed here. |
|
/retest |
|
@lance6716: PRs from untrusted users cannot be marked as trusted with DetailsIn response to this:
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. |
…act common code of s3 like store (pingcap#65561) ref pingcap#65461
What problem does this PR solve?
Issue Number: ref #65461
Problem Summary:
What changed and how does it work?
smithy.APIError, this issue shouldn't happen normally, but we fix it anywayCheck List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.