Skip to content

[KIP-113] Add rd_kafka_DescribeLogDirs() admin API#5333

Open
Piotr WOLSKI (piochelepiotr) wants to merge 1 commit intoconfluentinc:masterfrom
piochelepiotr:add-describe-logdirs-admin-api
Open

[KIP-113] Add rd_kafka_DescribeLogDirs() admin API#5333
Piotr WOLSKI (piochelepiotr) wants to merge 1 commit intoconfluentinc:masterfrom
piochelepiotr:add-describe-logdirs-admin-api

Conversation

@piochelepiotr
Copy link
Copy Markdown

@piochelepiotr Piotr WOLSKI (piochelepiotr) commented Feb 26, 2026

Summary

Implements the DescribeLogDirs admin API (Kafka API key 35, KIP-113)
to allow querying partition sizes in bytes on disk.

  • Follows the ElectLeaders pattern (self-contained protocol request/response)
  • Supports protocol versions 0-4 with flexible version negotiation (v2+)
  • topics parameter accepts a topic-partition list to filter, or NULL for all
  • Request targets a specific broker via AdminOptions_set_broker(), defaults to controller

Resolves #5192

A companion confluent-kafka-python PR with Python bindings and describe_log_dirs() will follow once this is merged.

@confluent-cla-assistant
Copy link
Copy Markdown

confluent-cla-assistant bot commented Feb 26, 2026

🎉 All Contributor License Agreements have been signed. Ready to merge.
✅ piochelepiotr
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

@piochelepiotr Piotr WOLSKI (piochelepiotr) changed the title Add rd_kafka_DescribeLogDirs admin API [KIP-113] Add rd_kafka_DescribeLogDirs() admin API Mar 20, 2026
@piochelepiotr Piotr WOLSKI (piochelepiotr) force-pushed the add-describe-logdirs-admin-api branch 2 times, most recently from f29a9f6 to 522897a Compare March 20, 2026 21:05
@piochelepiotr Piotr WOLSKI (piochelepiotr) marked this pull request as ready for review March 20, 2026 21:05
@piochelepiotr Piotr WOLSKI (piochelepiotr) requested a review from a team as a code owner March 20, 2026 21:05
Implement the DescribeLogDirs admin API (Kafka API key 35) to allow
querying partition sizes in bytes on disk for capacity planning and
monitoring.

Adds full C admin API following the ElectLeaders pattern with
self-contained protocol request/response. Supports protocol versions
0-4 with flexible version negotiation (v2+). The topics parameter
accepts a topic-partition list to filter, or NULL for all topics.
Request targets a specific broker via AdminOptions_set_broker(),
defaults to controller. No fanout: single broker per call, same as
Java AdminClient.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for Admin request DescribeLogDirs which allows to query partition sizes

2 participants