Skip to content

osd: Support for omaps in EC pools - Enabled - #69267

Merged
MattyWilliams22 merged 2 commits into
ceph:mainfrom
MattyWilliams22:ec-omaps-enabled
Jul 13, 2026
Merged

MattyWilliams22 merged 2 commits into
ceph:mainfrom
MattyWilliams22:ec-omaps-enabled

Conversation

@MattyWilliams22

@MattyWilliams22 MattyWilliams22 commented Jun 3, 2026 •

Copy link
Copy Markdown
Contributor

This PR enables omap support for Fast EC pools.

It also fixes some problems with the omap code which had not been fixed in #66726.

Fixes: https://tracker.ceph.com/issues/77329

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.

@rzarzynski

rzarzynski commented Jun 5, 2026 •

Copy link
Copy Markdown
Contributor

@MattyWilliams22: how about turning this draft PR into a reviewable / mergable one?
Please note you might signal a "do not merge right now" intention with the DNM label.

@MattyWilliams22

Copy link
Copy Markdown
Contributor Author

Here is a teuthology test run of the rados/thrash-erasure-code directory that is running ceph_test_rados against an EC pool with omap support enabled: https://pulpito-ng.ceph.com/runs/mattywilliams-2026-06-05_08:11:56-rados:thrash-erasure-code-main-distro-default-trial

All 48/48 tests passed.

The branch that was used for this test run included all the code from this PR, the PeeringState fix from PR #68888 and the change to ceph_test_rados from PR #69269

@MattyWilliams22

Copy link
Copy Markdown
Contributor Author

jenkins test api

@MattyWilliams22
MattyWilliams22 force-pushed the ec-omaps-enabled branch 4 times, most recently from 531e445 to e3e5a61 Compare June 9, 2026 16:21
Change handling of reads_sent bool in do_read_op.
Use errors to determine omap_satisfied in handle_sub_read_reply.
When a head object is deleted, and a whiteout is created, a REPLACE op should be used so that the ECOmapJournal knows to handle the operation as a delete. This should avoid the scenario where omap updates that should be applied to a clone, are instead applied to the whiteout object.

Fixes: https://tracker.ceph.com/issues/77329
Signed-off-by: Matty Williams <[email protected]>
@MattyWilliams22
MattyWilliams22 marked this pull request as ready for review June 11, 2026 08:56
@MattyWilliams22
MattyWilliams22 requested review from a team as code owners June 11, 2026 08:56
Enable supports_omap flag in Fast EC pools.
Enable testing of omap operations in Fast EC pools.

Fixes: https://tracker.ceph.com/issues/77329
Signed-off-by: Matty Williams <[email protected]>

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

LGTM

@MattyWilliams22

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@MattyWilliams22

Copy link
Copy Markdown
Contributor Author

jenkins test windows

Comment thread src/osd/ECCommon.cc
}
}

// Found a suitable shard, add it to shard_reads

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.

ACK.

Comment thread src/osd/ECCommon.cc
// Found a suitable shard, add it to shard_reads
shard_read_t shard_read;
shard_read.pg_shard = pg_shards[shard];
read_request.shard_reads.insert(shard, shard_read);

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.

OK, this the single place why the method takes read_request by non-const reference.

Comment thread src/osd/ECCommon.cc
rop.source_to_obj[shard_read.pg_shard].insert(hoid);
}
for (auto &[_, shard_read]: read_request.shard_reads) {
ceph_assert(!shard_read.extents.empty());

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.

For the sake of OMAP, right?
If so, better would be to extend the condition to something like non_empty_extents || omap_to_read.

Comment thread src/osd/ECTransaction.cc
zero_truncate_to_delete();
// Skip zero_truncate_to_delete if object has omap data to preserve it
if (!obc || !obc->obs.oi.is_omap()) {
zero_truncate_to_delete();

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.

ACK.

@anthonyeleven

Copy link
Copy Markdown
Contributor

nit: by convention a PR title like

osd: Enable support for omaps in EC pools

would be preferred. Not everybody enforces it, but I was indoctrinated several years ago that PR titles should be imperatives.

@amathuria

Copy link
Copy Markdown
Contributor

@MattyWilliams22
MattyWilliams22 merged commit 8c7ccb2 into ceph:main Jul 13, 2026
6 of 8 checks passed
@MattyWilliams22
MattyWilliams22 deleted the ec-omaps-enabled branch July 13, 2026 09:05
@MattyWilliams22
MattyWilliams22 restored the ec-omaps-enabled branch July 20, 2026 14:32
@MattyWilliams22
MattyWilliams22 deleted the ec-omaps-enabled branch August 5, 2026 12:33
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.

8 participants