Commit 82d0c12
authored
MINOR: Add topicId parameter to OffsetAndMetadata.fromRequest for TxnOffsetCommit (#22159)
This patch adds a `topicId` parameter to the
`TxnOffsetCommitRequestPartition` overload of
`OffsetAndMetadata.fromRequest`, mirroring the existing
`OffsetCommitRequestPartition` overload. The single caller in
`OffsetMetadataManager.commitTransactionalOffset` passes
`Uuid.ZERO_UUID` to preserve the current behavior.
The `testFromTransactionalRequest` test is converted to a parameterized
test that covers both `Uuid.ZERO_UUID` and a random topic ID.
Reviewers: Andrew Schofield <aschofield@confluent.io>1 parent 7340eef commit 82d0c12
3 files changed
Lines changed: 10 additions & 5 deletions
File tree
- group-coordinator/src
- main/java/org/apache/kafka/coordinator/group
- test/java/org/apache/kafka/coordinator/group
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
| |||
200 | 201 | | |
201 | 202 | | |
202 | 203 | | |
203 | | - | |
| 204 | + | |
204 | 205 | | |
205 | 206 | | |
206 | 207 | | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
737 | 737 | | |
738 | 738 | | |
739 | 739 | | |
| 740 | + | |
740 | 741 | | |
741 | 742 | | |
742 | 743 | | |
| |||
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| |||
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
182 | | - | |
| 183 | + | |
183 | 184 | | |
| 185 | + | |
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
| |||
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
200 | | - | |
| 202 | + | |
201 | 203 | | |
| 204 | + | |
202 | 205 | | |
203 | 206 | | |
204 | 207 | | |
| |||
0 commit comments