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
Copy file name to clipboardExpand all lines: stage_descriptions/listing-partitions-02-vt6.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ In this stage, you'll implement the `DescribeTopicPartitions` response for an un
2
2
3
3
### The `DescribeTopicPartitions` API (Recap)
4
4
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.
6
6
7
7
We've created an interactive protocol inspector for the `DescribeTopicPartitions` request & response:
8
8
@@ -36,7 +36,7 @@ In previous stages, you used response header v0, which only contained the `corre
36
36
|`correlation_id`|`INT32`| Matches the request's correlation ID |
37
37
|`TAG_BUFFER`|`TAGGED_FIELDS`| Tagged fields |
38
38
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.
40
40
41
41
### The `DescribeTopicPartitions` Response Body
42
42
@@ -71,7 +71,7 @@ For an unknown topic, your response should:
71
71
- Leave the `partitions` array empty.
72
72
- Set `next_cursor` to `-1` (null).
73
73
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"`:
75
75
76
76
```java
77
77
0000002f// message_size: 47 bytes
@@ -114,7 +114,7 @@ The tester will validate that:
114
114
- The correlation ID in the response header matches the correlation ID in the request header.
115
115
- The response uses response header v1 (with `TAG_BUFFER`).
116
116
- 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.
118
118
- The `topic_name` field in the response should be equal to the topic name sent in the request.
119
119
- The `topic_id` field in the response should be equal to `00000000-0000-0000-0000-000000000000`.
120
120
- The `partitions` field in the response should be empty.
0 commit comments