Repository navigation
Conversation
Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
Stop emitting buffered blob results after a write or finish failure, so parsing a cached key cannot clear the error and publish indices to the removed output. Add transient write-failure coverage and exercise raw-size metadata through level merge and fallback. Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
Transfer the completed arrays instead of copying their full payload. The collector is finished and no longer consumes either string. Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
Return immediately after attempting a level-merge write so a backfill lookup cannot clear an output failure and discard buffered records. Treat a required missing compression dictionary as corruption and release the reader on open failures. Extend rotation coverage to legacy indices with dictionary buffering and verify dictionary failure classification and cleanup. Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
Keep blob storage alive while an SST builder is completing an entry, including concurrent CF drop and obsolete-file purge. Test the backfill boundary with statistics disabled so stats ownership cannot mask early release. Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
Acquire CF storage under the metadata mutex and keep it alive through construction. A normal builder whose CF has already disappeared starts with ColumnFamilyDropped; recovery retains its read-only metadata-free path. Cover both creation-time and in-flight deletion in the regression. Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
Capture the aggregate builder status before cleanup destroys the blob builder. Cover Add-time append failures without file rotation, with raw-size properties both enabled and disabled, and require the original SSTs and values to survive. Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
Treat auxiliary raw-size read errors during WAL recovery as unknown sizes. Preserve every original BlobIndex and warn at most once per output SST. Keep normal backfill and data-write error handling unchanged. Cover I/O and corruption failures at the first and later entries, a second restart, and subsequent compaction backfill. 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>
|
Skipping CI for Draft Pull Request. |
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem and change
Store known raw value lengths in the optional
TitanDB.blob_raw_size_map.v1SST property. Each entry is(blob file number, offset, raw value length). Sort and deduplicate entries by address, then query the property with binary search during compaction.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
Requires the companion RocksDB hint interfaces. rust-rocksdb and TiKV consume the new option, counters and explicit length argument.
RawSizePropertiesTesttests passed; the companion TiKV code set passed all 56engine_rockstests in a serial run.The new property adds 24 bytes per distinct known blob address. First-time backfill reads and decompresses values; its cost depends on the data and storage.
Companion draft PRs