Bug #80535
closedqa: replica direct read split operations silently not exercised due to omap sub-ops causing SplitOp rejection
0%
Description
Summary
Existing thrash workloads that enabled balance_reads on replica pools were intended to exercise the new replica direct read split path. In practice, every read operation was silently rejected by SplitOp::create() before any splitting occurred, meaning the entire split code path was never reached during testing.
The root cause is that the TestRados read model (ReadOp in RadosModel.h) appends omap sub-operations to the same compound librados operation as the data read. The SplitOp validator rejects any compound operation containing an op code it does not recognise, and all omap op codes fall into that category.
Additionally, the existing workloads provided no way to vary osd_min_split_replica_read_size, the threshold that controls whether a read is large enough to be eligible for splitting, making it impossible to write targeted tests for different split boundary conditions.
Fix
Commit 1 — Infrastructure (qa/tasks/rados.py, src/test/osd/RadosModel.h, src/test/osd/TestRados.cc)
Add a standalone no_omap: true option to the rados task, independent of EC pool mode, so replica pool workloads can suppress omap sub-ops and allow SplitOp::create() to proceed past validate_operations().
Add a --min-split-size <bytes> argument to TestRados to set osd_min_split_replica_read_size.
Commit 2 — Test workloads (qa/suites/rados/thrash/workloads/)
Five new thrash YAML files, all with balance_reads: true and no_omap: true
CJ Updated by Callum James 3 months ago
- Pull request ID set to 71799
UB Updated by Upkeep Bot 2 months ago
- Status changed from New to Resolved
- Merge Commit set to 7214f2405d237c1ba33b4aa7d80ee069eb01a728
- Fixed In set to v21.3.0-3892-g7214f2405d
- Upkeep Timestamp set to 2026-10-01T09:13:44+00:00