Add rd_kafka_DescribeLogDirs admin API#5333
Draft
Piotr WOLSKI (piochelepiotr) wants to merge 1 commit intoconfluentinc:masterfrom
Draft
Add rd_kafka_DescribeLogDirs admin API#5333Piotr WOLSKI (piochelepiotr) wants to merge 1 commit intoconfluentinc:masterfrom
Piotr WOLSKI (piochelepiotr) wants to merge 1 commit intoconfluentinc:masterfrom
Conversation
|
🎉 All Contributor License Agreements have been signed. Ready to merge. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the
DescribeLogDirsadmin API (Kafka API key 35, KIP-113) to allow querying partition sizes in bytes on disk for capacity planning and monitoring.topicsparameter accepts a topic-partition list to filter, or NULL for all topicsAdminOptions_set_broker(), defaults to controllerResolves #5192
Changes
src/rdkafka_op.h/c— NewRD_KAFKA_OP_DESCRIBELOGDIRSop typesrc/rdkafka.h— Public API: event define, typedefs, opaque types, function declarations, accessorssrc/rdkafka_admin.h— Internal structs for LogDirDescription, LogDirTopicDescription, LogDirPartitionDescriptionsrc/rdkafka_request.h/c— Protocol request builder with v0-v4 negotiationsrc/rdkafka_admin.c— Entry point, response parser, result types, all public accessorssrc/rdkafka_event.h/c— Event type registration and gettertests/0080-admin_ut.c— Unit tests (4 variants: main/temp queue × with/without options)Test plan
cmakebuild succeeds with no new warnings./tests/test-runner 0080passes all existing and new testslocalhost:9092(if available)🤖 Generated with Claude Code