Skip to content

titan: expose SST raw size properties and collector hints - #868

Draft
hbisheng wants to merge 17 commits into
tikv:masterfrom
hbisheng:bh-titan-raw-size-map
Draft

hbisheng wants to merge 17 commits into
tikv:masterfrom
hbisheng:bh-titan-raw-size-map

Conversation

@hbisheng

@hbisheng hbisheng commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Problem and change

Expose Titan raw-size properties through the Rust bindings. Add the CF option, pass an explicit optional raw size through the C++/C/Rust collector callback, and expose backfill attempt/failure tickers. Update the Titan and RocksDB gitlinks to the companion PoC heads.

The callback distinguishes a legacy call without a hint from an enabled call whose raw size is unknown. TiKV uses the encoded blob length for the latter.

This is a draft PoC for tikv/tikv#20419. BlobIndex, blob files and WAL keep their existing formats. The new SST property is optional; old readers can ignore it and old compactions can drop it.

Dependencies and validation

The companion RocksDB and Titan PRs provide the native implementation; TiKV consumes these bindings.

  • Built with the pinned native dependencies and the companion TiKV head.
  • All 56 engine_rocks tests passed in a serial run, including the collector integration. All 17 Titan raw-size tests passed on the same code set.
  • One persistence-listener test failed in the initial parallel Rust run; its isolated rerun and the full serial suite passed.
  • Full standalone rust-rocksdb tests, current-head cluster rerun and long-running tests remain pending.

Dependency URLs and revisions point to the author's PoC forks and must be updated as the companion changes merge. The branch is based on de6be1bf and is two upstream commits behind at draft creation.

Companion draft PRs

Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
…risons

Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
@ti-chi-bot

ti-chi-bot Bot commented Nov 30, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@ti-chi-bot ti-chi-bot Bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. dco-signoff: yes Indicates the PR's author has signed the dco. labels Nov 30, 2026
@ti-chi-bot

ti-chi-bot Bot commented Nov 30, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign lonng for approval. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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

Labels

dco-signoff: yes Indicates the PR's author has signed the dco. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant