Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit af63cf9

Browse files
committed
proto&readme: list offsets bumps for KIP-1005 & KIP-1075
1 parent b3afc3f commit af63cf9

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,8 @@ generation.
411411
| [KIP-919](https://cwiki.apache.org/confluence/display/KAFKA/KIP-919%3A+Allow+AdminClient+to+Talk+Directly+with+the+KRaft+Controller+Quorum+and+add+Controller+Registration) — Admin client talk to KRaft , Controller registration | 3.7 | Supported (proto) |
412412
| [KIP-951](https://cwiki.apache.org/confluence/display/KAFKA/KIP-951%3A+Leader+discovery+optimisations+for+the+client) — Leader discovery optimizations | 3.7 | Supported |
413413
| [KIP-994](https://cwiki.apache.org/confluence/display/KAFKA/KIP-994%3A+Minor+Enhancements+to+ListTransactions+and+DescribeTransactions+APIs) — List/Describe transactions enhancements | 3.8 (partial) | Supported |
414+
| [KIP-1005](https://cwiki.apache.org/confluence/display/KAFKA/KIP-1005%3A+Expose+EarliestLocalOffset+and+TieredOffset) — ListOffsets w. Timestamp -5 | 3.9 | Supported |
415+
| [KIP-1075](https://cwiki.apache.org/confluence/display/KAFKA/KIP-1075%3A+Introduce+delayed+remote+list+offsets+purgatory+to+make+LIST_OFFSETS+async) — TimeoutMillis on ListOffsets | 4.0 | Supported |
414416

415417
Missing from above but included in librdkafka is:
416418

generate/definitions/02_list_offsets

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@
1010
//
1111
// Version 8, introduced in Kafka 3.4, supports -4 as a timestamp to return
1212
// the local log start offset (in the context of tiered storage, see KIP-405).
13-
ListOffsetsRequest => key 2, max version 8, flexible v6+
13+
//
14+
// Version 9, introduced in Kafka 3.9, supports -5 as a timestamp to return
15+
// the latest offset in remote storage. See KIP-1005.
16+
//
17+
// Version 10, introduced in Kafka 4.0, adds TimeoutMillis, allowing you to set
18+
// a timeout when the ListOffsets request triggers a lookup from remote storage.
19+
// See KIP-1075.
20+
ListOffsetsRequest => key 2, max version 10, flexible v6+
1421
// ReplicaID is the broker ID to get offsets from. As a Kafka client, use -1.
1522
// The consumer replica ID (-1) causes requests to only succeed if issued
1623
// against the leader broker.
@@ -61,10 +68,16 @@ ListOffsetsRequest => key 2, max version 8, flexible v6+
6168
// KIP-405), the new special timestamp -4 returns the local log start
6269
// offset. In the context of tiered storage, the earliest local log start
6370
// offset is the offset actually available on disk on the broker.
71+
//
72+
// If you are talking to Kafka 3.9+ and using request version 9+ (for KIP-1005),
73+
// the special timestamp -5 returns the latest offset in remote storage.
6474
Timestamp: int64
6575
// MaxNumOffsets is the maximum number of offsets to report.
6676
// This was removed after v0.
6777
MaxNumOffsets: int32(1) // v0-v0
78+
// TimeoutMillis is how long to wait for a lookup the offset being looked up
79+
// is in remote storage.
80+
TimeoutMillis: int32(30000) // v10+
6881

6982
// ListOffsetsResponse is returned from a ListOffsetsRequest.
7083
ListOffsetsResponse =>

0 commit comments

Comments
 (0)