Skip to content

Comments

fix(storage): add HeaderRecord to staged merged blocks and support sealed segment directReader#88

Open
tinswzy wants to merge 1 commit intodevfrom
feature_client_read_sealed_seg_obj_in_service_mode
Open

fix(storage): add HeaderRecord to staged merged blocks and support sealed segment directReader#88
tinswzy wants to merge 1 commit intodevfrom
feature_client_read_sealed_seg_obj_in_service_mode

Conversation

@tinswzy
Copy link
Collaborator

@tinswzy tinswzy commented Feb 10, 2026

issue: #87

…lti-sub-block reader

The staged storage writer's processMergeTask was missing the HeaderRecord
when writing compacted merged blocks, causing the reader to fail on
integrity verification. Fix the writer to prepend a HeaderRecord with
the compacted flag for the first merged block while preserving the
original per-block structure (BlkHeaderRecord+DataRecords per sub-block).

Update the object storage reader's processBlockData to handle merged
blocks containing multiple sub-blocks by collecting all BlockHeaderRecords,
verifying each sub-block's integrity individually, and resetting entry ID
tracking at sub-block boundaries. Add integration test for direct read
of sealed segments after cluster stop

Signed-off-by: tinswzy <zhenyuan.wei@zilliz.com>
@tinswzy tinswzy added the enhancement New feature or request label Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant