aashish-confluent commented on code in PR #24080:
URL: https://github.com/apache/kafka/pull/24080#discussion_r4450876156


##########
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());
+            if (topic == null) {
+                throw new TaskAssignmentException("Corrupted user data byte[]. 
Topic dictionary index is out of range.");

Review Comment:
   Addressed, Thanks



-- 
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]

Reply via email to