Skip to content

Rebase & merge V4 back to main#396

Merged
koujl merged 12 commits intomainfrom
jkou-dev
Mar 9, 2026
Merged

Rebase & merge V4 back to main#396
koujl merged 12 commits intomainfrom
jkou-dev

Conversation

@koujl
Copy link
Contributor

@koujl koujl commented Mar 9, 2026

  • Rebased all v4 changes onto current main
  • Add Prepare merging to main commit: 7cf0dbc

yuwmao and others added 12 commits March 6, 2026 16:23
- Move user_key into BlobHeader and fix BlobHeader to 4k(=_data_block_size)
- This feature facilitates partial read. Currently the size of (BlobHeader+user_key) varies, so we have to read header first to lookup the data start offset. With fixed header, we can compute data offset directly and save one IO to read header.

Co-authored-by: yuwmao <yuwmao@ebaychina.com>
The current _get_blob implementation always reads the full blob data
regardless of the offset/len parameters, which causes unnecessary I/O
on HDDs when only a portion of the blob is needed.

Adds an `allow_skip_verify` parameter to enable an optimized partial
read path where header is skipped and only read the requested range.
* Add shard meta in create_shard API

authored-by: yuwmao <yuwmao@ebaychina.com>
Corrupted user_key_size may cause invalid memory access.
Implement migration logic to detect and upgrade v1 shard superblocks
during recovery. Migration is queued and written after recovery
completes.

Also fixes a bug where DataHeader::type was not set during shard
creation.
Due to rebase aganist master

Signed-off-by: Xiaoxi Chen <xiaoxchen@ebay.com>
v1_ShardInfo should have the same byte alignment as ShardInfo struct.
* add trigger gc api
* support trigger gc for a specific pg
@koujl koujl changed the title [TEST] v4 rebase Rebase & merge V4 back to main Mar 9, 2026
@koujl koujl marked this pull request as ready for review March 9, 2026 08:54
@xiaoxichen
Copy link
Collaborator

lgtm

Copy link
Collaborator

@JacksonYao287 JacksonYao287 left a comment

Choose a reason for hiding this comment

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

LG

@koujl koujl merged commit d1392ce into main Mar 9, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants