You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this stage, you'll only need to add an entry for the `Fetch` API to the APIVersions response you implemented in earlier stages. We'll get to responding to `Fetch` requests in later stages.
13
13
@@ -27,10 +27,10 @@ The tester will validate that:
27
27
- The correlation ID in the response header matches the correlation ID in the request header.
28
28
- The error code in the response body is `0` (No Error).
29
29
- The response body contains at least one entry for the API key `1` (FETCH).
30
-
- The `MaxVersion` for the Fetch API is atleast 17.
30
+
- The `MaxVersion` for the Fetch API is atleast 16.
31
31
32
32
### Notes
33
33
34
34
- You don't have to implement support for handling `Fetch` requests in this stage. We'll get to this in later stages.
35
35
- You'll still need to include the entry for `APIVersions` in your response to pass earlier stages.
36
-
- The `MaxVersion` for the `Fetch` and `APIVersions` are different. For `APIVersions`, it is 4. For `Fetch`, it is 17.
36
+
- The `MaxVersion` for the `Fetch` and `APIVersions` are different. For `APIVersions`, it is 4. For `Fetch`, it is 16.
A `Fetch` request includes a list of topics to fetch messages from. If the request contains an empty list of topics, the `responses` field in the response will be an empty array.
6
+
7
+
Here are interactive visualizations of what the `Fetch` request & response will look like when the request contains an empty list of topics:
8
+
9
+
- 🔎 [Fetch Request (v17) with no topics](https://binspec.org/kafka-fetch-request-v17-no-topics)
10
+
- 🔎 [Fetch Response (v17) with no topics](https://binspec.org/kafka-fetch-response-v17-no-topics)
11
+
12
+
In this stage, you'll need to implement the response for a `Fetch` request with an empty list of topics. We'll get to handling `Fetch` requests with topics in later stages.
8
13
9
14
### Tests
10
15
@@ -36,4 +41,4 @@ The tester will validate that:
36
41
37
42
- You don't need to parse the fields in the `Fetch` request in this stage, we'll get to this in later stages.
38
43
- The official docs for the `Fetch` request can be found [here](https://kafka.apache.org/protocol.html#The_Messages_Fetch). Make sure
39
-
to scroll down to the "Fetch Response (Version: 16)" section.
44
+
to scroll down to the "Fetch Response (Version: 16)" section.
0 commit comments