Timeseries: discover time buckets through listing segments - #507
Merged
Conversation
SlateDB 0.14 tracks per-segment LSM state (RFC-0024) and requires a matching segment extractor when opening a DbReader, so buckets can be discovered from the segment list instead of a dedicated record. - Wire TimeseriesSegmentExtractor into the timeseries Db and DbReader builders. Bucket discovery now projects DbStatus::list_segments() (manifest plus unflushed memtable segments) through parse_bucket instead of reading the BucketList record. Visibility timing is unchanged: a bucket becomes queryable at its first delta apply, exactly when the BucketList merge used to land. StorageSnapshot captures the writer's segment list at creation time, since DbSnapshot exposes no DbStatus. - Remove the BucketList machinery end to end: the serde record type (0x01 now reserved), the merge-operator arm, the flusher announce phase and its lookup metric, the cache-warmer key warm, and the coalesce-on-open pass. - Rename parse_bucket_record_type to parse_time_bucket_and_record_type and drop the unused write_bucket_scoped_prefix helper. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
cadonna
force-pushed
the
timeseries_bucket_discovery
branch
from
July 13, 2026 20:30
c79466e to
da4b262
Compare
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.
Summary
Discovers time buckets through listing segments instead of consulting the BucketList record. The BucketList record is removed from TimeSeries.
Test Plan
unit tests
Checklist
cargo fmtandcargo clippypass