The specification for a Partition Record on BinSpec seems to be missing a field after Leader.
The missing field is “LeaderRecoveryState” (int8) and can be verified on Github.
This missing field was required for me to parse the metadata file without skipping.
Hey @danilogalisteu, LeaderRecoveryState is a tagged field, which means it only appears at the end of the Partition Record if its value differs from the default (0).
If the value is 0, Kafka omits it during serialization to reduce file size. That’s why it’s missing in the BinSpec example.