Question about hn6: Fetch with an unknown topic

I’m finding the response obtuse without much guidance. While the kafka spec is pretty complete it’s can be arcane and hard to parse. Binspec made the topic response much easier to understand complete correctly. There are also just many more parameters the test itself is asking for that isn’t set in the challenge prompt itself. Between that and the return error messages I’m about to give up just from frustration of not knowing what exactly is wrong. I could just snipe someone elses code but that wouldn’t actually teach me anything about what’s going wrong.

So actual question,

Can anyone lay out what are the actual parameters that are necessary to complete. Do you need all the various arrays in the compact partition array. Is highwatermark just a blank variable that important to the spec but we don’t have access to yet.

Hi @FotoVerite, yes you’ll need to specify all fields listed in the official docs. However, since we don’t validate all of them, you can safely set the unused ones to zero.

Here’s an example response FYI:

As for high_watermark, it isn’t validated in this stage since replication hasn’t been introduced yet.

Closing this thread due to inactivity. If you still need assistance, feel free to reopen or start a new discussion!