Skip to content

osd: Remove all references to hinfo from optimized EC - #63960

Merged
aainscow merged 1 commit into
ceph:mainfrom
aainscow:ec_remove_hinfo
Jul 10, 2025
Merged

aainscow merged 1 commit into
ceph:mainfrom
aainscow:ec_remove_hinfo

Conversation

@aainscow

@aainscow aainscow commented Jun 16, 2025 •

Copy link
Copy Markdown
Contributor

depends on #63873 (Please only look at final commit)

Tracker: https://tracker.ceph.com/issues/71813

Legacy EC used hinfo attribute to store two things:

  1. Shard size
  2. CRCs of the shards

However:

  • Optimized EC stores different object sizes on each shard
  • Optimized EC scrub calculates the correct sizes of shards and checks them, so shard size checks are not needed in hinfo.
  • Bluestore checks the CRC.
  • Seastore checks the CRC:

Seastore supports CRC checks for both meta and data internally.
Upon overwriting an object, Seastore will update CRC and will verify it on full object reads.

As such, the hinfo object is redundant. As such we remove it in optimized EC:

  1. Remove all references/upgrades to hinfo.
    2 Delete hinfo attribute if found on recovery/backfill.
    3 Redirect all scrub references for hinfo to legacy EC.

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

Comment thread src/osd/ECTransaction.h Resolved
Comment thread src/osd/ECTransaction.cc Resolved
@ronen-fr

Copy link
Copy Markdown
Contributor

LGTM (but see request for clarification).

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

Looks good, few niggles

Comment thread src/osd/ECTransaction.cc Resolved
Comment thread src/osd/ECBackend.h Resolved
Comment thread src/osd/ECTransaction.h Outdated

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.

Think this is spurious and can be deleted

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Comment thread src/test/osd/TestECUtil.cc Resolved
@aainscow
aainscow force-pushed the ec_remove_hinfo branch 2 times, most recently from c59d8a5 to 54f04ea Compare June 18, 2025 09:48
@aainscow
aainscow requested a review from JonBailey1993 June 18, 2025 09:49
@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@ljflores

ljflores commented Jul 9, 2025

Copy link
Copy Markdown
Member

@aainscow this commit should be signed-off: 231ac30

@ljflores

ljflores commented Jul 9, 2025

Copy link
Copy Markdown
Member

@aainscow
aainscow force-pushed the ec_remove_hinfo branch 4 times, most recently from 9b75aed to 2632277 Compare July 10, 2025 10:19
@aainscow

Copy link
Copy Markdown
Contributor Author

THanks @JonBailey1993 for returning the PR back to what was tested, after I pushed a bad rebase (several times)

    Legacy EC used hinfo to store two things:
    1. Shard size
    2. CRCs of the shards

    However:
    * Optimized EC stores different object sizes on each shard
    * Optimized EC scrub calculates the correct sizes of shards and checks them, so shard size checks are not needed in hinfo.
    * Bluestore checks the CRC.
    * Seastore checks the CRC.

    As such, the hinfo object is redundant. As such we remove it in
    optimized EC:

    1. Remove all references/upgrades to hinfo.
    2. Delete hinfo attribute if found on recovery/backfill.
    3. Redirect all scrub references for hinfo to legacy EC.

Signed-off-by: Alex Ainscow <[email protected]>
@aainscow

Copy link
Copy Markdown
Contributor Author

jenkins test api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants