Skip to content

Document Connection::Client/Proxy#read_partition_offsets - #991

Open
coipond-writer[bot] wants to merge 1 commit into
masterfrom
fix/connection-read-partition-offsets-undocumented-44803
Open

Document Connection::Client/Proxy#read_partition_offsets#991
coipond-writer[bot] wants to merge 1 commit into
masterfrom
fix/connection-read-partition-offsets-undocumented-44803

Conversation

@coipond-writer

Copy link
Copy Markdown
Contributor

What

`connection/client.rb:463-481` and `connection/proxy.rb:68-111` define a 2.6.0 `read_partition_offsets` on the consumer's own connection (as opposed to `Karafka::Admin`'s dedicated admin connection). It is used internally by the Pro Iterator (`pro/iterator/tpl_builder.rb`) and lag-compensation (`pro/instrumentation/consumer_groups/lag_compensation/fetcher.rb`) features. No wiki page mentioned this method exists.

Fix

Added a "Consumer-Side Counterpart" subsection cross-linked from the Admin API's Reading Partition Offsets section, including its own `:latest`/isolation-level caveat as documented directly in `connection/client.rb`'s docstring (this PR only documents what this method's own docstring says about itself -- it does not touch or resolve the separate `Admin::Topics#read_partition_offsets` LSO-recipe dispute tracked in #44792).

Fixes #44803 (Redmine).

connection/client.rb:463-481 and connection/proxy.rb:68-111 define a
2.6.0 read_partition_offsets on the consumer's own connection (as
opposed to Karafka::Admin's dedicated admin connection). It accepts
the same topic_partition_offsets spec, forwards the consumer's own
isolation.level, and is used internally by the Pro Iterator
(pro/iterator/tpl_builder.rb) and lag-compensation
(pro/instrumentation/consumer_groups/lag_compensation/fetcher.rb)
features. No wiki page mentioned this method exists.

Added a "Consumer-Side Counterpart" subsection cross-linked from the
Admin API's Reading Partition Offsets section, including its own
:latest/isolation-level caveat as documented directly in
connection/client.rb's docstring.

Fixes #44803.
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.

0 participants