Skip to content

test: Modify split_op_cxx to use pool chunk size instead of assuming 4k - #71285

Merged
SrinivasaBharath merged 1 commit into
ceph:mainfrom
JonBailey1993:fix_split_op_ec_unit_tests
Sep 7, 2026
Merged

SrinivasaBharath merged 1 commit into
ceph:mainfrom
JonBailey1993:fix_split_op_ec_unit_tests

Conversation

@JonBailey1993

Copy link
Copy Markdown
Contributor

When creating new EC pools, we no longer use 4k statically as the default value if nothing is set. Instead, in OSDMonitor::prepare_pool_stripe_width we choose eith 4K or 16K based on whether we support optimisations and have optimisations enabled on the pool. Because of this, when running split_op_cxx tests without osd_pool_erasure_code_stripe_unit set, you would see some failures where the test was trying to send an IO that should be split, but was not split due to the 16K chunk size.

This fixes the issue by determining the stripe unit of the pool before deciding on the size of the IO so we can always send two chunks worth of data, and should protect the tests if the default chunk size is increased again in the future as well.

Assisted-by: IBM Bob 2.0.4

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.

When creating new EC pools, we no longer use 4k statically as the default value
if nothing is set. Instead, in OSDMonitor::prepare_pool_stripe_width we choose
eith 4K or 16K based on whether we support optimisations and have optimisations
enabled on the pool. Because of this, when running split_op_cxx tests without
osd_pool_erasure_code_stripe_unit set, you would see some failures where the
test was trying to send an IO that should be split, but was not split due to the
16K chunk size.

This fixes the issue by determining the stripe unit of the pool before deciding
on the size of the IO so we can always send two chunks worth of data, and should
protect the tests if the default chunk size is increased again in the future as
well.

Signed-off-by: Jon Bailey <[email protected]>
Assisted-by: IBM Bob 2.0.4

@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

@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

@JonBailey1993

Copy link
Copy Markdown
Contributor Author

I've added the needs-qa label to this and #69290 - it would be good if they could go through QA together as #69290 depends on this PR

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been added to wip-bharath14-testing-20260826.230942-main.

@NitzanMordhai

Copy link
Copy Markdown
Contributor

@SrinivasaBharath
SrinivasaBharath merged commit 0e05cd0 into ceph:main Sep 7, 2026
7 checks passed
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.

4 participants