Skip to content

Commit 1995bdb

Browse files
authored
Update listing-partitions-02-vt6.md
1 parent 9ac3209 commit 1995bdb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stage_descriptions/listing-partitions-02-vt6.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ In this stage, you'll implement the `DescribeTopicPartitions` response for an un
22

33
### The `DescribeTopicPartitions` API (Recap)
44

5-
The [`DescribeTopicPartitions`](https://kafka.apache.org/protocol.html#The_Messages_DescribeTopicPartitions) API returns metadata about [topics](https://kafka.apache.org/documentation/#intro_concepts_and_terms) and their [partitions](https://kafka.apache.org/documentation/#:~:text=partitioned). For this stage, you'll handle cases where a client asks about a topic that doesn't exist.
5+
As a recap, the [`DescribeTopicPartitions`](https://kafka.apache.org/protocol.html#The_Messages_DescribeTopicPartitions) API returns metadata about [topics](https://kafka.apache.org/documentation/#intro_concepts_and_terms) and their [partitions](https://kafka.apache.org/documentation/#:~:text=partitioned). For this stage, you'll handle cases where a client requests a topic that doesn't exist.
66

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

@@ -36,7 +36,7 @@ In previous stages, you used response header v0, which only contained the `corre
3636
| `correlation_id` | `INT32` | Matches the request's correlation ID |
3737
| `TAG_BUFFER` | `TAGGED_FIELDS` | Tagged fields |
3838

39-
The main difference is the addition of the `TAG_BUFFER` field. For this stage, you can leave the `TAG_BUFFER` empty.
39+
The main difference is the addition of the `TAG_BUFFER` field. You can leave the `TAG_BUFFER` empty.
4040

4141
### The `DescribeTopicPartitions` Response Body
4242

@@ -71,7 +71,7 @@ For an unknown topic, your response should:
7171
- Leave the `partitions` array empty.
7272
- Set `next_cursor` to `-1` (null).
7373

74-
Here's an example of what your response might look like for a topic named "foo":
74+
Here's an example of what your response might look like for a topic named `"foo"`:
7575

7676
```java
7777
00 00 00 2f // message_size: 47 bytes
@@ -114,7 +114,7 @@ The tester will validate that:
114114
- The correlation ID in the response header matches the correlation ID in the request header.
115115
- The response uses response header v1 (with `TAG_BUFFER`).
116116
- The `error_code` in the response body is `3` (`UNKNOWN_TOPIC_OR_PARTITION`).
117-
- The response body should be valid DescribeTopicPartitions (v0) Response.
117+
- The response body should be a valid DescribeTopicPartitions (v0) Response.
118118
- The `topic_name` field in the response should be equal to the topic name sent in the request.
119119
- The `topic_id` field in the response should be equal to `00000000-0000-0000-0000-000000000000`.
120120
- The `partitions` field in the response should be empty.

0 commit comments

Comments
 (0)