Repository navigation
osd: Support for omaps in EC pools - Enabled - #69267
Conversation
9eaaaba to
e6cc836
Compare
62d61b6 to
8d36a90
Compare
|
@MattyWilliams22: how about turning this draft PR into a reviewable / mergable one? |
|
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 |
8d36a90 to
63831ce
Compare
63831ce to
7400bd9
Compare
|
jenkins test api |
531e445 to
e3e5a61
Compare
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]>
e3e5a61 to
a607488
Compare
a607488 to
dd26d97
Compare
dd26d97 to
2bcfa20
Compare
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]>
2bcfa20 to
58640e2
Compare
|
jenkins test make check arm64 |
|
jenkins test windows |
| } | ||
| } | ||
|
|
||
| // Found a suitable shard, add it to shard_reads |
| // 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); |
There was a problem hiding this comment.
OK, this the single place why the method takes read_request by non-const reference.
| rop.source_to_obj[shard_read.pg_shard].insert(hoid); | ||
| } | ||
| for (auto &[_, shard_read]: read_request.shard_reads) { | ||
| ceph_assert(!shard_read.extents.empty()); |
There was a problem hiding this comment.
For the sake of OMAP, right?
If so, better would be to extend the condition to something like non_empty_extents || omap_to_read.
| 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(); |
|
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. |
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
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.