Repository navigation
Conversation
Keep owned bound slices stable when resetting an ordinary RocksDB iterator. Refuse tailing, Titan, and originally unbounded iterators without changing them. Signed-off-by: jwc1love <jwc20050401@gmail.com>
Cover forward and reverse resets, empty ranges, EOF, owned bounds, column families, snapshot visibility, point/range tombstones, and unsupported tailing/Titan cases. Signed-off-by: jwc1love <jwc20050401@gmail.com>
Assert SSTs moved from L0 to L1 and compare repeated forward/reverse reseeks against fresh iterators, including returns to earlier ranges. Signed-off-by: jwc1love <jwc20050401@gmail.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. Comment |
|
Hi @jwc1love. Thanks for your PR. I'm waiting for a tikv member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
Welcome @jwc1love! |
Enable iterator reuse across bounded scan ranges for tikv/tikv#4239.
DBIterator::reset_bounds_and_seekreplaces owned bounds and performs a hard forward or reverse seek while retaining the iterator snapshot and other read options. It returnsNonewithout mutation for unsupported configurations andSome(false)for a supported empty result.Titan, tailing, and missing/empty-bound configurations reject reset before mutation. The caller must continue to honor the column-family comparator and prefix constraints; the TiKV integration rejects prefix-seek reuse. No native ABI or RocksDB submodule change is required.
Validation: 7 new reset tests and 7 existing iterator tests passed, compiled from the original test source through a focused normal-Cargo target in the TiKV workspace. Coverage includes both directions, EOF and empty ranges, snapshot retention, owned bound storage, column families, L0 SST generations with tombstones, and compaction into L1 before revisiting ranges. Formatting checks passed. The complete wrapper suite and platform matrix have not been run.
Draft for API/native-bound review and full CI. The dependent TiKV change retains safe fresh-scanner fallback and has separate MVCC/coprocessor/region tests.