Repository navigation
crimson/osd/pg_backend.cc: fallback sparse_read on normal read - #72105
Conversation
|
jenkins test make check |
|
jenkins test make check arm64 |
Matan-B
left a comment
There was a problem hiding this comment.
The two failures seem to be around calc_crc32c. Could this issue relate to EC tests?
Classic do_sparse_read seem to try to repair the object in this case.
// Why SPARSE_READ need checksum? In fact, librbd always use sparse-read.
// Maybe at first, there is no much whole objects. With continued use, more
// and more whole object exist. So from this point, for spare-read add
// checksum make sense.
if ((uint64_t)r == oi.size && oi.is_data_digest()) {
uint32_t crc = data_bl.crc32c(-1);
if (oi.data_digest != crc) {
osd->clog->error() << info.pgid << std::hex
<< " full-object read crc 0x" << crc
<< " != expected 0x" << oi.data_digest
<< std::dec << " on " << soid;
r = rep_repair_primary_object(soid, ctx);
| os.oi.soid, (uint64_t)op.extent.offset, (uint64_t)op.extent.length); | ||
|
|
||
| if (is_erasure()) { | ||
| // TODO: implement sparse read properly for EC pools with direct reads. |
There was a problem hiding this comment.
Can we reference a todo tracker here please?
|
The two failures around
The fallback path I added uses |
This commit adds a fallback to normal read when a sparse read is done on an EC pool in crimson. Once direct reads is implemented in crimson, sparse reads will work as expected. Fixes: https://tracker.ceph.com/issues/80698 Signed-off-by: Shraddha Agrawal <[email protected]>
42361b5 to
b736487
Compare
|
This is an automated message by src/script/redmine-upkeep.py. I found one or more
The referenced tickets are: Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them. |
This commit adds a fallback to normal read when a sparse read is done on an EC pool in crimson. Once direct reads is implemented in crimson, sparse reads will work as expected.
Fixes: https://tracker.ceph.com/issues/80698
Testing
QA: https://pulpito.ceph.com/shraddhaag-2026-09-26_19:08:02-crimson-rados-wip-shraddhaag-sparse-read-fallback-distro-debug-trial/.
All three jobs passed
TestClsRbd.sparse_copyup/FastEC. The bluestore job also passedTestClsRbd.sparsify/FastEC. Before the seastore ones could reachTestClsRbd.sparsify/FastEC, the OSD crashed due to an unrelated error: https://tracker.ceph.com/issues/80920Checklist
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.