Skip to content

osd: Remove sub-chunk support in Fast EC - #71927

Merged
aainscow merged 1 commit into
ceph:mainfrom
aainscow:remove_subchunk_reads
Oct 13, 2026
Merged

aainscow merged 1 commit into
ceph:mainfrom
aainscow:remove_subchunk_reads

Conversation

@aainscow

@aainscow aainscow commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

We are no longer supporting the Clay EC plugin. The Sub-Chunk code was never actually tested in its "on" mode, so is likely broken.

This PR simply removes the sub-chunk support

Assisted-by: IBM-Bob v2.1.0

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 x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@aainscow
aainscow force-pushed the remove_subchunk_reads branch from 9534726 to d0f64d0 Compare September 20, 2026 14:56
@aainscow
aainscow force-pushed the remove_subchunk_reads branch from d0f64d0 to e5deabd Compare September 20, 2026 16:17
@aainscow
aainscow requested a review from a team as a code owner September 20, 2026 16:17
@aainscow
aainscow force-pushed the remove_subchunk_reads branch from e5deabd to 0a99532 Compare September 20, 2026 16:46
Comment thread src/osd/ECMsgTypes.cc Outdated
for (auto &&[hoid, tl] : to_read) {
auto it = subchunks.find(hoid);
if (it == subchunks.end()) continue;
if (it == subchunks.end()) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't think this check is necessary. We can skip the subchunks and just assume the cost is for the full op. Does that mean we can also simplify the encode?

Comment thread src/osd/ECMsgTypes.cc Outdated
// subchunks itself, so only build the default when it hasn't.
const auto *subchunks_out = &subchunks;
std::map<hobject_t, std::vector<std::pair<int, int>>> defaulted_subchunks;
if (subchunks.empty()) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Won't subchunks ALWAYS be empty on the sending side? We should assert this is empty. Indeed, I think we can completely drop subchunks from the structure, as long as we encode a dummy subchunks in the right place. For decode, I think we need to throw away the contents.

Comment thread src/osd/ECCommon.cc Resolved
Comment thread src/osd/ECCommon.cc
#endif
if (empty_obc) {
update_object_size_after_read(op.recovery_info.size, res, req);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

nit: Unwanted whitespace change

We are no longer supporting Clay.  The Sub-Chunk code was never actually
tested in its "on" mode, so is likely broken.

This simply removes the sub-chunk support

Signed-off-by: Alex Ainscow <[email protected]>
Assisted-by: IBM-Bob v2.1.0
Assisted-by: Claude Code:Claude-Sonnet-5
@aainscow
aainscow force-pushed the remove_subchunk_reads branch from 0a99532 to 5d50b1a Compare September 24, 2026 13:44
@batrick

batrick commented Sep 24, 2026

Copy link
Copy Markdown
Member

@aainscow please see #72056

@aainscow

Copy link
Copy Markdown
Contributor Author

@aainscow please see #72056

Ack. Fast EC has never supported Clay. The sub-chunk code was stub code from the port and never tested. We have since decided to deprecate it, since it doesn't have any performance advantages over ISA-L and is difficult to maintain.

When we remove legacy EC, Clay users will be required to use pool migration to move their data to ISA-L.

@rzarzynski rzarzynski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🥇

@aainscow

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been added to wip-bharath14-testing-20260930.003013-main.

@aainscow

Copy link
Copy Markdown
Contributor Author

jenkins test api

1 similar comment
@aainscow

Copy link
Copy Markdown
Contributor Author

jenkins test api

@MattyWilliams22

Copy link
Copy Markdown
Contributor

@aainscow
aainscow merged commit 6a6604f into ceph:main Oct 13, 2026
23 of 28 checks passed
@MaxKellermann MaxKellermann mentioned this pull request Oct 30, 2026
4 of 14 tasks
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.

5 participants