Skip to content

Commit 429d75c

Browse files
committed
Update Fetch API version references from v17 to v16 in stage descriptions.
1 parent ba9be54 commit 429d75c

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

stage_descriptions/consuming-messages-01_gs0.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ The [Fetch API](https://kafka.apache.org/protocol#The_Messages_Fetch) (API key `
66

77
We've created an interactive protocol inspector for the request & response structures for `Fetch`:
88

9-
- 🔎 [Fetch Request (v17)](https://binspec.org/kafka-fetch-request-v17)
10-
- 🔎 [Fetch Response (v17)](https://binspec.org/kafka-fetch-response-v17)
9+
- 🔎 [Fetch Request (v16)](https://binspec.org/kafka-fetch-request-v16)
10+
- 🔎 [Fetch Response (v16)](https://binspec.org/kafka-fetch-response-v16)
1111

1212
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.
1313

@@ -27,10 +27,10 @@ The tester will validate that:
2727
- The correlation ID in the response header matches the correlation ID in the request header.
2828
- The error code in the response body is `0` (No Error).
2929
- 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.
3131

3232
### Notes
3333

3434
- You don't have to implement support for handling `Fetch` requests in this stage. We'll get to this in later stages.
3535
- 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.

stage_descriptions/consuming-messages-02_dh6.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
In this stage, you'll implement the Fetch response for a Fetch request with no topics.
1+
In this stage, you'll implement the response for a `Fetch` request with no topics.
22

3-
🚧 **We're still working on instructions for this stage**. You can find notes on how the tester works below.
3+
### Fetch API response for no topics
44

5-
In the meantime, please use
6-
[this link](https://forum.codecrafters.io/new-topic?category=Challenges&tags=challenge%3Akafka&title=Question+about+dh6%3A+Fetch+with+no+topics&body=%3Cyour+question+here%3E)
7-
to ask questions on the forum.
5+
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.
813

914
### Tests
1015

@@ -36,4 +41,4 @@ The tester will validate that:
3641

3742
- You don't need to parse the fields in the `Fetch` request in this stage, we'll get to this in later stages.
3843
- 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

Comments
 (0)