Skip to content

reader: Add committed_chunk_id/1 callback implementation#47

Merged
the-mikedavis merged 1 commit intomainfrom
rebase-osiris
Feb 3, 2026
Merged

reader: Add committed_chunk_id/1 callback implementation#47
the-mikedavis merged 1 commit intomainfrom
rebase-osiris

Conversation

@the-mikedavis
Copy link
Copy Markdown
Member

This adds an implementation for osiris_log_reader:committed_chunk_id/1 which was added upstream recently in rabbitmq/osiris#203. The committed chunk ID is now a different concept than the committed offset. The committed chunk Id is the first offset in the chunk which is committed by a quorum. The committed offset is the last offset in that chunk.

Here we do the same as osiris_log: read the values which are being maintained in the osiris_log_shared atomic.

I have rebased the branches in Osiris and the server to add this new callback.

Also see rabbitmq/rabbitmq-server#15225

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

This adds an implementation for `osiris_log_reader:committed_chunk_id/1`
which was added upstream recently in
<https://github.com/rabbitmq/osiris/pull/203>.
The committed chunk ID is now a different concept than the committed
offset. The committed chunk Id is the first offset in the chunk which
is committed by a quorum. The committed offset is the last offset in
that chunk.

Here we do the same as `osiris_log`: read the values which are being
maintained in the `osiris_log_shared` atomic.
@the-mikedavis the-mikedavis self-assigned this Feb 3, 2026
@the-mikedavis the-mikedavis merged commit d616952 into main Feb 3, 2026
4 checks passed
@the-mikedavis the-mikedavis deleted the rebase-osiris branch February 3, 2026 21:12
@lukebakken lukebakken added this to the 1.0.0 milestone Apr 3, 2026
@the-mikedavis the-mikedavis added C-enhancement Category: Improvements A-log-reader Area: Impl of `osiris_log_reader`. Local and remote stream reads. labels Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-log-reader Area: Impl of `osiris_log_reader`. Local and remote stream reads. C-enhancement Category: Improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants