Skip to content

RocksDB should expose key type #413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2025
Merged

Conversation

v01dstar
Copy link
Member

@v01dstar v01dstar commented Jun 3, 2025

Follow up of #412

#412 made RocksDB treats Titan blob index as plain value, however, Titan also rely on RocksDB's internal key type to identify whether the value is blob index or plain value.
See Titan's code here
So, this PR sets iter.is_blob_ when meeting a Titan blob index.

Maintenance:
Merge this with #388 in the future maintenance

@ti-chi-bot ti-chi-bot bot added dco-signoff: yes Indicates the PR's author has signed the dco. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 3, 2025
Copy link
Member

@overvenus overvenus left a comment

Choose a reason for hiding this comment

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

Could you add a test?

@v01dstar
Copy link
Member Author

v01dstar commented Jun 5, 2025

Could you add a test?

It is impossible to add a test in this repo, we do have tests in Titan (see here) and rust-rocksdb (see here)
I believe having tests in other repos is sufficient for correctness, it just makes us find problems late

Copy link
Member

@Connor1996 Connor1996 left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Jun 5, 2025
Copy link

ti-chi-bot bot commented Jun 5, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Connor1996, overvenus

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

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [Connor1996,overvenus]

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

@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Jun 5, 2025
Copy link

ti-chi-bot bot commented Jun 5, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-06-05 07:49:50.297181 +0000 UTC m=+514476.499526266: ☑️ agreed by Connor1996.
  • 2025-06-05 15:37:39.536142046 +0000 UTC m=+542545.738487310: ☑️ agreed by overvenus.

@ti-chi-bot ti-chi-bot bot merged commit 2b04d05 into tikv:8.10.tikv Jun 5, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved dco-signoff: yes Indicates the PR's author has signed the dco. lgtm size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants