Hi
I was stuck in stage 5 and found Question about Handle APIVersions requests stage helpful in solving my issue.
The only thing that I don’t understand is related to the num_of_api_keys. The correct value according to the tests is 2.
In the discussion, it was said that the API_KEYS is a COMPACT_ARRAY (or at least that’s what I understood), and we need to set that field to N+1
The documentation is also saying that this field is an UNSIGNED_VARINT
According to this post Making all your integers positive with zigzag encoding 1 is mapped to 2 after applying zigzag encoding. (or zigzag is applied only in case of the signed numbers?? in that case why did kafka documentation mention it?)
is APY_KEYS an ARRAY or a COMPACT_ARRAY? how can we distinguish between the two, as both are referred with the same syntax in the documentation (as [T])