...
No protocol change is required as the log start offset is readily available (similar to how log end offset is retrieved); and the partition size is simply the difference between beginning and end offsets. Note that for a compacted topic the partition size cannot reliably be calculated from beginning and end offsets. For these partitions a compacted
value appears under the PARTITION-SIZE
column. As Whether a topic is compacted or not can be determined using AdminClient.describeConfigs(...)
.
As a result, the output of the command for --describe
and --describe --offsets
options will change from something like this:
...