Skip to content

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

Merged
SrinivasaBharath merged 1 commit into
ceph:tentaclefrom
aainscow:wip-72363-tentacle
Aug 19, 2025
Merged

SrinivasaBharath merged 1 commit into
ceph:tentaclefrom
aainscow:wip-72363-tentacle

Conversation

@aainscow

@aainscow aainscow commented Aug 1, 2025

Copy link
Copy Markdown
Contributor

    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]>
(cherry picked from commit ae4da72)

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

LGTM - doesn't have change to src/erasure-code/consistency/ECEncoder.cc but that's because #62170 (test/debug tool) is not being backported

@connorfawcett

Copy link
Copy Markdown
Contributor

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