Skip to content

Commit

Permalink
all: add support for KIP-784
Browse files Browse the repository at this point in the history
  • Loading branch information
twmb committed Feb 13, 2022
1 parent 1afca16 commit a13f918
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ generation.
| [KIP-730](https://cwiki.apache.org/confluence/display/KAFKA/KIP-730%3A+Producer+ID+generation+in+KRaft+mode) - AllocateProducerIDs | 3.0 | Supported |
| [KIP-734](https://cwiki.apache.org/confluence/display/KAFKA/KIP-734:+Improve+AdminClient.listOffsets+to+return+timestamp+and+offset+for+the+record+with+the+largest+timestamp) — Support MaxTimestamp in ListOffsets | 3.0 | Supported (simple version bump) |
| [KIP-735](https://cwiki.apache.org/confluence/display/KAFKA/KIP-735%3A+Increase+default+consumer+session+timeout) — Bump default session timeout | ? | Supported |
| [KIP-784](https://cwiki.apache.org/confluence/display/KAFKA/KIP-784%3A+Add+top-level+error+code+field+to+DescribeLogDirsResponse) — Add ErrorCode to DescribeLogDirs response| 3.1 | Supported |
| [KIP-800](https://cwiki.apache.org/confluence/display/KAFKA/KIP-800%3A+Add+reason+to+JoinGroupRequest+and+LeaveGroupRequest) — Reason in Join/Leave group | 3.1 | Supported |

Missing from above but included in librdkafka is:
Expand Down
4 changes: 3 additions & 1 deletion generate/definitions/35_describe_log_dirs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// DescribeLogDirsRequest requests directory information for topic partitions.
// This request was added in support of KIP-113.
DescribeLogDirsRequest => key 35, max version 2, flexible v2+
DescribeLogDirsRequest => key 35, max version 3, flexible v2+
// Topics is an array of topics to describe the log dirs of. If this is
// null, the response includes all topics and all of their partitions.
Topics: nullable[=>]
Expand All @@ -12,6 +12,8 @@ DescribeLogDirsRequest => key 35, max version 2, flexible v2+
// DescribeLogDirsResponse is returned from a DescribeLogDirsRequest.
DescribeLogDirsResponse =>
ThrottleMillis(1)
// The error code, or 0 if there was no error.
ErrorCode: int16 // v3+
// Dirs pairs log directories with the topics and partitions that are
// stored in those directores.
Dirs: [=>]
Expand Down
15 changes: 13 additions & 2 deletions pkg/kmsg/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pkg/kversion/kversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -889,5 +889,8 @@ var maxTip = nextMax(max300, func(v listenerKeys) listenerKeys {
// KAFKA-13496 bf609694f83931990ce63e0123f811e6475820c5 KIP-800
v[13].inc() // 5 sync group

// KAFKA-13527 31fca1611a6780e8a8aa3ac21618135201718e32 KIP-784
v[35].inc() // 3 describe log dirs

return v
})

0 comments on commit a13f918

Please sign in to comment.