Skip to content

tentacle: erasure-code/clay: decode sub-chunks in place - #72182

Merged
batrick merged 1 commit into
ceph:tentaclefrom
rzarzynski:wip-clay-subchunk-in-place-decode-tentacle
Oct 7, 2026
Merged

batrick merged 1 commit into
ceph:tentaclefrom
rzarzynski:wip-clay-subchunk-in-place-decode-tentacle

Conversation

@rzarzynski

@rzarzynski rzarzynski commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

This is a (speculative) backport of #72056.
Tracker: https://tracker.ceph.com/issues/81139.
Parent tracker: https://tracker.ceph.com/issues/80848.

(cherry picked from commit a148360)

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.

Since 216eb26 raised ErasureCode::SIMD_ALIGN from 32 to 64, CLAY
realigns sub-chunk views that are smaller than SIMD_ALIGN (32 bytes for
k=12 m=4 d=15) before decoding into them. The realign copies the view,
the inner decode writes into the copy and the result is lost. Encode
goes through the same path, so parity is written wrong, and degraded
reads return uninitialised memory.

Don't realign the sub-chunk views that are written in place; assert
that they are contiguous instead. The repair path still realigns its
inputs, which come from the read reply and may be misaligned. Add an
enabled round-trip test with 32-byte sub-chunks.

Fixes: https://tracker.ceph.com/issues/80848
Reported-by: Michal Strnad
Signed-off-by: Lumir Sliva <[email protected]>
(cherry picked from commit a148360)
@rzarzynski rzarzynski added this to the tentacle milestone Sep 29, 2026
@rzarzynski
rzarzynski requested a review from a team as a code owner September 29, 2026 07:15
@rzarzynski

Copy link
Copy Markdown
Contributor Author

CC: @lumir-sliva.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ceph Release Engineering Audit Report

Automated Redmine Linkage Audit

The following tracking irregularities were found:

  • Missing Original PR(s): Could not identify any main PRs associated with this backport. Ensure the backport commits properly reference the original PRs.
  • Orphaned Backport PR: Could not find any Redmine tracker linked directly to this backport PR #72182.

Automated Backport Parity Review - Unmerged Commits Detected

This backport contains cherry-picks of commits that do not appear to be merged into the main branch (could not find an associated merge commit or PR). Backports should only contain commits that have already been merged upstream.

Unmerged Cherry-Picks

Be familiar with the rules and guidelines for writing backports.


Automated Backport Parity Review

Discrepancies detected between the backport PR and the original source PR(s). Please see the Commit Parity Visualizer below.


Commit Parity Visualizer

BACKPORT PR #72182 SOURCE PR SOURCE STATUS
9104378 erasure-code/clay: decode sub-chunks in place <<<< EXTRA IN BACKPORT >>>>

🛟 Need Help?

If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.

📋 Component Lead / Release Manager

To override the audit failure, apply releng-audit-override label or comment /audit override.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Sep 29, 2026
@rzarzynski

Copy link
Copy Markdown
Contributor Author

@ljflores, @SrinivasaBharath: would you mind taking this into QA?

@rzarzynski

Copy link
Copy Markdown
Contributor Author

/audit override

@github-actions github-actions Bot added releng-audit-override and removed releng-audit-fail Release engineering: failed backport verification audit. labels Sep 29, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @rzarzynski.

View workflow run

@aainscow aainscow 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.

I confirmed this is a faithful backport.

@rzarzynski

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@rzarzynski

Copy link
Copy Markdown
Contributor Author

jenkins test make api

1 similar comment
@rzarzynski

Copy link
Copy Markdown
Contributor Author

jenkins test make api

@rzarzynski

Copy link
Copy Markdown
Contributor Author

@ljflores: is the QA ready for this?

@ljflores

ljflores commented Oct 5, 2026

Copy link
Copy Markdown
Member

@ljflores

ljflores commented Oct 5, 2026

Copy link
Copy Markdown
Member

jenkins test api

@rzarzynski

Copy link
Copy Markdown
Contributor Author

Thank you, @ljflores!

Hi @batrick! This backport is ready to go. Would you mind merging it?

@batrick
batrick merged commit 44a28c6 into ceph:tentacle Oct 7, 2026
26 of 27 checks passed
@batrick batrick modified the milestones: tentacle, v20.2.5 Oct 7, 2026
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.

6 participants