Skip to content

[BugFix]disable chunked upload in aws sdk while we have support it in poco #55854

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

Merged
merged 2 commits into from
Feb 21, 2025

Conversation

zombee0
Copy link
Contributor

@zombee0 zombee0 commented Feb 13, 2025

Why I'm doing:

What I'm doing:

Fixing the issue when accessing S3 Express One

A community user reported an issue where they encountered an exception
while creating a table on S3 Express One. Based on our tests, the issue
occurs with PutObject, while MultiPartUpload works fine when accessing
S3 Express One.

The root cause is that, even when setting PayloadSigningPolicy::Never,
requests to S3 Express One still get signed. This results in chunked uploads,
which are not supported in the Poco client.

I think we can works around this by setting a checksum in the request,
preventing additional signing and avoiding chunked uploads. However,
applying this approach in our case would require setting a checksum
for all PutObject and MultiUpload requests across both starrocks_be
and staros, which is error-prone.

To address this more reliably, I propose disabling chunked uploads
via a patch to aws-cpp-sdk.

and once we supported chunked upload, we can remove this patch.

Fixes #issue
#55685

What type of PR is this:

  • BugFix
  • Feature
  • Enhancement
  • Refactor
  • UT
  • Doc
  • Tool

Does this PR entail a change in behavior?

  • Yes, this PR will result in a change in behavior.
  • No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

  • Interface/UI changes: syntax, type conversion, expression evaluation, display information
  • Parameter changes: default values, similar parameters but with different default values
  • Policy changes: use new policy to replace old one, functionality automatically enabled
  • Feature removed
  • Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

  • I have added test cases for my bug fix or my new feature
  • This pr needs user documentation (for new or modified features or behaviors)
    • I have added documentation for my new feature or new function
  • This is a backport pr

Bugfix cherry-pick branch check:

  • I have checked the version labels which the pr will be auto-backported to the target branch
    • 3.4
    • 3.3
    • 3.2
    • 3.1
    • 3.0

@zombee0 zombee0 requested a review from a team as a code owner February 13, 2025 02:43
@github-actions github-actions bot added the 3.4 label Feb 13, 2025
@zombee0
Copy link
Contributor Author

zombee0 commented Feb 14, 2025

more reference aws/aws-sdk-cpp#3297

@zombee0 zombee0 force-pushed the support_express_one branch from 4ec7e9a to 05d4c03 Compare February 14, 2025 03:28
@wangruin
Copy link
Contributor

@mergify rebase

Copy link
Contributor

mergify bot commented Feb 17, 2025

rebase

✅ Branch has been successfully rebased

@wangruin wangruin force-pushed the support_express_one branch from 05d4c03 to f62b2b4 Compare February 17, 2025 03:20
@zombee0 zombee0 force-pushed the support_express_one branch 2 times, most recently from 603d9d2 to 64f0da0 Compare February 18, 2025 08:13
@kevincai
Copy link
Contributor

@Mergifyio rebase

Copy link
Contributor

mergify bot commented Feb 21, 2025

rebase

✅ Branch has been successfully rebased

@kevincai kevincai force-pushed the support_express_one branch from 64f0da0 to bafcaa2 Compare February 21, 2025 06:21
Copy link

[Java-Extensions Incremental Coverage Report]

pass : 0 / 0 (0%)

Copy link

[FE Incremental Coverage Report]

pass : 0 / 0 (0%)

Copy link

[BE Incremental Coverage Report]

pass : 0 / 0 (0%)

@wangruin wangruin merged commit 48cc6fc into StarRocks:main Feb 21, 2025
50 checks passed
Copy link

@Mergifyio backport branch-3.4

@github-actions github-actions bot removed the 3.4 label Feb 21, 2025
Copy link
Contributor

mergify bot commented Feb 21, 2025

backport branch-3.4

✅ Backports have been created

@zombee0 zombee0 deleted the support_express_one branch February 26, 2025 06:47
dyp12 pushed a commit to dyp12/starrocks that referenced this pull request Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants