Skip to content

Add basic sequence number bookkeeping - #28

Merged
hachikuji merged 5 commits into
mainfrom
log-sequence-impl
Jan 7, 2026
Merged

Add basic sequence number bookkeeping#28
hachikuji merged 5 commits into
mainfrom
log-sequence-impl

Conversation

@hachikuji

Copy link
Copy Markdown
Contributor

This patch contains basic sequence number initialization and allocation logic. For now, the logic is synchronous. Eventually we can move it to a separate thread so that we are unlikely to block on sequence number allocation.

agavra and others added 3 commits January 7, 2026 08:16
This patch implements the codec logic for log record keys and values. It also modifies the storage RFC with a revised escaping scheme. We use 0x00 as the delimiter between the key and the sequence in the composite key and 0x01 as the escape character. Additionally, we reserve 0xFF to specify the end of a prefix range query. For example, to find all log entries matching the key prefix "/foo", we we would set the start bound to "/foo" + 0x00 and the end bound to "/foo" + 0xFF.

@agavra agavra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM pending the weird thing with changes being puled in for timeseries. not sure what's up with that

Comment thread log/rfcs/0001-storage.md
Comment thread log/src/codec.rs Outdated
Comment thread timeseries/src/promql/evaluator.rs
@hachikuji
hachikuji merged commit ed76c97 into main Jan 7, 2026
1 check passed
@hachikuji
hachikuji deleted the log-sequence-impl branch January 7, 2026 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants