Skip to content

docs(admin): document Admin#read_partition_offsets (ListOffsets API)#635

Merged
mensfeld merged 5 commits into
masterfrom
docs/admin-read-partition-offsets
May 26, 2026
Merged

docs(admin): document Admin#read_partition_offsets (ListOffsets API)#635
mensfeld merged 5 commits into
masterfrom
docs/admin-read-partition-offsets

Conversation

@mensfeld

Copy link
Copy Markdown
Member

No description provided.

mensfeld added 2 commits May 26, 2026 10:57
Adds a new section to the Admin API page covering the upcoming
`read_partition_offsets` method (karafka/karafka#3183). Documents
the four offset specs (:earliest, :latest, :max_timestamp, ms timestamp),
the isolation_level option for LSO-based lag on transactional topics,
and how it compares to read_watermark_offsets.

Copilot AI 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.

Pull request overview

This PR adds documentation for Karafka::Admin.read_partition_offsets, describing how it uses Kafka’s ListOffsets API via librdkafka to query offsets by spec (earliest/latest/max_timestamp/timestamp) and optionally apply transactional isolation for LSO-based lag calculations.

Changes:

  • Added a new “Reading Partition Offsets” section covering capabilities, return shape, and key differences vs read_watermark_offsets.
  • Included usage examples for basic calls, multi-topic queries, LSO (READ_COMMITTED) queries, timestamp-based lookups, and :max_timestamp.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Infrastructure/Admin/API.md Outdated
@mensfeld mensfeld marked this pull request as ready for review May 26, 2026 09:09
@mensfeld mensfeld requested a review from Copilot May 26, 2026 09:23
@mensfeld mensfeld merged commit 0cbd7cc into master May 26, 2026
4 of 5 checks passed
@mensfeld mensfeld deleted the docs/admin-read-partition-offsets branch May 26, 2026 09:27
@mensfeld mensfeld removed the request for review from Copilot May 26, 2026 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants