Question about EA7: List for a single partition - missing field on BinSpec Partition Record

Hello,

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.

Let me know if you’d like further clarification!

I couldn’t find clear binary definitions for the tagged fields or the headers arrays.

I’ll skip the partition records for now, it seems it’s not needed to pass this test.

Thanks!

1 Like

For posterity: I was wrong about the missing field being required for the test, even though it seems to be required by the specification.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.