liuliuOD commented on code in PR #24080:
URL: https://github.com/apache/kafka/pull/24080#discussion_r4451544076
##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/assignment/AssignmentInfo.java:
##########
@@ -494,7 +494,11 @@ private static Set<TopicPartition>
readTopicPartitions(final DataInputStream in,
}
final Set<TopicPartition> partitions = new HashSet<>(numPartitions);
for (int j = 0; j < numPartitions; j++) {
- partitions.add(new
TopicPartition(topicIndexDict.get(in.readInt()), in.readInt()));
+ final String topic = topicIndexDict.get(in.readInt());
Review Comment:
Would it be worth capturing `final int topicIndex = in.readInt();` to print
the invalid index in the error message? It could save some guesswork if this
ever triggers in the wild.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]