Skip to content

Conversation

lance6716
Copy link
Contributor

@lance6716 lance6716 commented Oct 8, 2023

What problem does this PR solve?

Issue Number: close #47230

Problem Summary:

What is changed and how it works?

when URL scheme is ks3, use ks3 SDK rather than AWS SDK. Note that a main difference is ks3 SDK does not expose context on API ks3sdklib/aws-sdk-go#29 , so I manually set a 5 minutes timeout on HTTP client.

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
|  30001 | ks3://data0/test.item_core.10*.csv?access-key=xxxxxx&secret-access-key=xxxxxx&endpoint=http%3a%2f%2fks3-cn-beijing-internal.ksyuncs.com&force-path-style=false&region=Beijing&provider=ks
| `test`.`item_core` |      112 |            | finished | 158.8GB          |      11100000 |                | 2023-10-09 05:27:28.744758 | 2023-10-09 05:27:31.897201 | 2023-10-09 05:50:52.899005 | root@%     |
  • No need to test
    • I checked and no code files have been changed.

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

@ti-chi-bot ti-chi-bot bot added do-not-merge/needs-tests-checked release-note-none Denotes a PR that doesn't merit a release note. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Oct 8, 2023
@tiprow
Copy link

tiprow bot commented Oct 8, 2023

Hi @lance6716. Thanks for your PR.

PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test all.

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/test-infra repository.

Signed-off-by: lance6716 <[email protected]>
@hawkingrei
Copy link
Member

/retest

@codecov
Copy link

codecov bot commented Oct 8, 2023

Codecov Report

Merging #47465 (7525f76) into master (1b4383a) will increase coverage by 0.8238%.
The diff coverage is 12.4260%.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #47465        +/-   ##
================================================
+ Coverage   72.0288%   72.8527%   +0.8238%     
================================================
  Files          1396       1420        +24     
  Lines        404192     411065      +6873     
================================================
+ Hits         291135     299472      +8337     
+ Misses        93465      92763       -702     
+ Partials      19592      18830       -762     
Flag Coverage Δ
integration 41.1898% <0.0000%> (?)
unit 71.9566% <12.4260%> (-0.0723%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
dumpling 53.9913% <ø> (ø)
parser ∅ <ø> (∅)
br 48.7156% <12.0792%> (-4.6474%) ⬇️

@lance6716 lance6716 changed the title [WIP] storage: support kingsoft s3 (ks3) storage: support kingsoft s3 (ks3) Oct 9, 2023
@ti-chi-bot ti-chi-bot bot removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. do-not-merge/needs-tests-checked labels Oct 9, 2023
Signed-off-by: lance6716 <[email protected]>
Copy link
Member

@okJiang okJiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pr need a release note?

Signed-off-by: lance6716 <[email protected]>
@lance6716
Copy link
Contributor Author

This pr need a release note?

Currently this is only used for testing, ks3 SDK is lacking necessary features like golang context

Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
@D3Hunter
Copy link
Contributor

D3Hunter commented Oct 9, 2023

ks3 url require redaction of AK/SK

Signed-off-by: lance6716 <[email protected]>
@lance6716 lance6716 requested a review from a team as a code owner October 9, 2023 13:41

const (
// ks3 sdk does not expose context, we use hardcoded timeout for network request
ks3HTTPDeadline = 5 * time.Minute
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if global sort upload a 10g+ file, if failed, is retry time included?

@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Oct 9, 2023
@ti-chi-bot ti-chi-bot bot added the lgtm label Oct 10, 2023
@ti-chi-bot ti-chi-bot bot removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Oct 10, 2023
@ti-chi-bot
Copy link

ti-chi-bot bot commented Oct 10, 2023

[LGTM Timeline notifier]

Timeline:

  • 2023-10-09 16:17:20.964681885 +0000 UTC m=+1069038.551792031: ☑️ agreed by D3Hunter.
  • 2023-10-10 07:12:27.246125938 +0000 UTC m=+1122744.833236105: ☑️ agreed by okJiang.

@hawkingrei
Copy link
Member

/retest

@ti-chi-bot
Copy link

ti-chi-bot bot commented Oct 13, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: D3Hunter, Leavrth, okJiang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added the approved label Oct 13, 2023
@lance6716
Copy link
Contributor Author

/retest

@tiprow
Copy link

tiprow bot commented Oct 13, 2023

@lance6716: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

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/test-infra repository.

@lance6716
Copy link
Contributor Author

/retest

@tiprow
Copy link

tiprow bot commented Oct 13, 2023

@lance6716: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

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/test-infra repository.

@lance6716
Copy link
Contributor Author

/retest

@tiprow
Copy link

tiprow bot commented Oct 13, 2023

@lance6716: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

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/test-infra repository.

@hawkingrei
Copy link
Member

/hold

@ti-chi-bot ti-chi-bot bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 13, 2023
@lance6716
Copy link
Contributor Author

/unhold

@ti-chi-bot ti-chi-bot bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 14, 2023
@hawkingrei
Copy link
Member

/retest

@ti-chi-bot ti-chi-bot bot merged commit 16f3e79 into pingcap:master Oct 15, 2023
budney pushed a commit to budney/tidb that referenced this pull request May 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Due to kingsoft s3 has different hebaviour with AWS s3, we should use k3s SDK when interact with it
5 participants