Repository navigation
Conversation
|
Thanks @cbodley! I think I've addressed all of your comments. Also I appreciate the insight into boost::asio, that's really helpful context - I don't have much experience with asio, even if I have done a bunch of async programming 😅 thank you! |
|
jenkins test make check arm64 |
|
@cbodley looks like CI had a transient failure on rocky 10 default, unrelated to the change - https://shaman.ceph.com/builds/ceph/CompleteMultipartUpload-keepalive-bytes/ do I need to retrigger the build? |
|
@nhoad probably yeah. when that happens to my builds, i do a "git commit --amend" on the branch so it gets a new commit sha, then force-push that to ceph-ci |
|
Thanks Casey! All green after the rerun - https://shaman.ceph.com/builds/ceph/CompleteMultipartUpload-keepalive-bytes/ |
|
i see there's a java s3test that doesn't like these changes. example from https://qa-proxy.ceph.com/teuthology/cbodley-2026-06-10_19:36:53-rgw-CompleteMultipartUpload-keepalive-bytes-distro-default-trial/283570/teuthology.log
|
|
Thanks Casey! Will take a look. |
cebc186 to
a735fd0
Compare
|
Very small fix, but that test failure revealed a legitimate issue. When connection reuse was in effect we weren't setting the error code properly, so the XML response was empty. Simple fix so I've added that now. |
|
jenkins test make check arm64 |
|
lots of "failed to install new kernel version within timeout" failures there that need a rerun. and many jobs failing s3-tests, probably because of a skew between the ceph and s3-tests repos. can you please rebase this and try again? |
…n upload. Multipart uploads can sometimes take a long time to complete in S3. According to the S3 docs, to cover this S3 periodically sends whitespace characters to prevent connection timeout. This PR implements that behavior in the RGW. It works by using a coroutine to complete the upload, while the main coroutine sends whitespace every 5 seconds. Signed-off-by: Nathan Hoad <[email protected]> AI-Assisted: Initial implementation was done with AI.
…y with rgw_common.cc Signed-off-by: Nathan Hoad <[email protected]>
…tatus of the response. Signed-off-by: Nathan Hoad <[email protected]>
Because the coroutine was launched with the current connection's executor, it means that
no atomic is needed. We also don't need a boolean to track whether or not the upload is
done, we can just check the error code from waiting on the timer. If we have a non-zero ec,
then the timer was canceled and the upload is complete.
Also while I'm here, remove the explicit optional_yield{yield} in favor of doing the
conversion implicitly.
Signed-off-by: Nathan Hoad <[email protected]>
…esponse When the keepalive path is taken (sent_header == true), the error response body was missing the error code because set_req_state_err() was only called in the !sent_header branch. This resulted in an empty <Code></Code> element, which the AWS SDK cannot parse as a valid error. Signed-off-by: Nathan Hoad <[email protected]>
a735fd0 to
308c065
Compare
|
This PR has been added to main integration testing by anuchaithra started 2026-07-17-06:18. |
|
I've removed the needs-qa label for now - the addition of s3-tests to QA has found some more real bugs in the implementation. I'm analysing and will bring it up at the next RGW meeting. |
|
Yes, the testing needs to be updated - the current testing only checks the async path now, so the error codes don't match what it's expecting. I'm going to update s3-tests to test both pathways, and will likely need to introduce a new config knob for this too. I'll update here when I have something to look :) In the meantime, please exclude this PR/branch from any more QA testing. |
No longer part of above tracker |
|
This PR has been removed from wip-anuchaithra-testing-20260717.061820-main. |
thanks @nhoad. afaik the only way to exercise the sync path is with |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
Multipart uploads can sometimes take a long time to complete in S3. According to the S3 docs, to cover this S3 periodically sends whitespace characters to prevent connection timeout. This PR implements that behavior in the RGW.
It works by using a coroutine to complete the upload, while the main coroutine sends whitespace every 5 seconds.
Tracker: https://tracker.ceph.com/issues/76260
I have tested this by intentionally delaying the upload coroutine like so:
And then using this to perform a multipart upload:
We can then look at the strace output to confirm this is working:
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.