What is DescribeLogDirs?
Shows per-broker disk usage, replica offset lag, and which replicas are mid-move (futureLogDir), via kafka-log-dirs.sh. High offsetLag on a follower replica indicates it's lagging behind the leader; compare with the ISR list to assess replication health.
| Version | Kafka | Changes |
|---|---|---|
| DescribeLogDirsRequest | ||
| v1 | 2.2 | is the same as version 0. |
| v2 | 2.6 | ~ Flexible encoding enabled FLEXIBLE is the first flexible version. |
| v3 | 3.2 | is the same as version 2 (new field in response). |
| v4 | 3.3 | is the same as version 2 (new fields in response). |
| v5 | is the same as version 2 (new fields in response). | |
| DescribeLogDirsResponse | ||
| v1 | 2.2 | on quota violation, brokers send out responses before throttling. |
| v2 | 2.6 | ~ Flexible encoding enabled FLEXIBLE is the first flexible version. |
| v3 | 3.2 | + ErrorCode int16adds the top-level ErrorCode field |
| v4 | 3.3 | + TotalBytes int64+ UsableBytes int64adds the TotalBytes and UsableBytes fields |
| v5 | + IsCordoned booladds IsCordoned field | |