Repository navigation
rgw: simplify request dispatch hot paths - #70676
Conversation
|
@yuvalif Thanks for your help and constructive feedback! I've tried to undo at least some of the more gratuitous formatting changes and will be more mindful, the point about commit histories and so on is significant (although sometimes it is certainly hard to resist). Appreciated! |
true :-) but would really appriciate reveting the cosmetic changes in rgw_rest_bucket_logging.cc |
|
This PR has been added to main integration testing by anuchaithra started 2026-08-03-05:57. |
fa53c74 to
5327a2b
Compare
Pr testing was complete, since new commits added would need to retest so removing this pr from above tracker |
|
jenkins test windows |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
5327a2b to
c5599ab
Compare
There was a problem hiding this comment.
i thought that the bucket logging fix was here: #71236 ?
are there other bucket logging fixes here, or just the perf improvemets (note that @mkogan1's perf tests do not cover bucket logging).
also, looks like there are many formatting changes in bucket logging code, would really appriciate if this could be avoided
|
Hi, @yuvalif! Yes, that's where the fix is-- I didn't update the description, thank you for pointing that out. There aren't other bucket logging changes here (or at least there shouldn't be). As the purpose of the change is to simplify the implementation (and, as you will recall, demonstrate some of the C++ Concepts) it is natural that there will be some cosmetic changes; I did make a pass to remove some of the more gratuitous ones. If there are specific concerns with the bucket logging code, please raise them on that PR. Thank you very much! |
i see, the changes here are in src/rgw/rgw_rest_bucket_logging.cc - unrelated to the bucket logging bug fix, but still related to bucket logging. there is quite a bit of refactoring there. is this related to the general attribute refacoring of this PR or addressing something else? unless it is depended with other changes here, I would appriciate if you can break it up to its own PR. |
| decode(tmp_mtime, mtime_it->second); | ||
| mtime = std::move(tmp_mtime); | ||
| } catch (buffer::error& err) { | ||
| ldpp_dout(dpp, 5) << "WARNING: failed to decode logging mtime attribute '" |
There was a problem hiding this comment.
Why are some messages using ldpp_dout and others ldpp_dout_fmt ?
There was a problem hiding this comment.
I had wanted to convert things to ldpp_dout_fmt() while I was at it and then backed off after comments about churn. Anything "new" is hopefully using ldpp_dout_fmt(). Personally, I would rather do it all while I'm here, but that isn't a universal sentiment, and I can also see the reasoning in migrating those calls as a separate set of changes.
Assisted-by: Codex:GPT-5 Signed-off-by: Jesse F. Williamson <[email protected]>
eff270c to
501d391
Compare
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
|
This PR has been removed from main integration testing by anuchaithra started 2026-09-02-05:41. |
|
@chardan @anrao19 this PR touches 35 files in the RGW codebase. |
| if (!post_body.empty() && std::string_view::npos != post_body.find("Action")) { | ||
| attribute_map attributes; | ||
| for (const auto token : post_body | std::views::split('&')) { | ||
| const std::string_view text { std::begin(token), std::end(token) }; |
There was a problem hiding this comment.
this is currently not compiling with gcc11. was this successfully built in shaman?
Well, that is my fault... I got a bit trigger happy again. It does need to run on Teuthology, I'll see what I can do. |
commented
Sep 16, 2026
|
Split into multiple commits: |
Refactors RGW operation and REST dispatch paths to reduce repeated branching, avoid
avoidable string copies, and split related operation families out of rgw_op.cc.
Cleanups:
rgw_op.cc is massive and terrifying. This steps toward cleaning it up:
Tests:
RGW tests: adds focused C++ coverage for REST routing, HTTP args, POST parsing, and tar EOF behavior.
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.Fixes: https://tracker.ceph.com/issues/78902
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.