nileshkumar3 commented on code in PR #22546:
URL: https://github.com/apache/kafka/pull/22546#discussion_r3400078926


##########
clients/src/main/java/org/apache/kafka/common/serialization/ListDeserializer.java:
##########
@@ -178,6 +178,9 @@ public List<Inner> deserialize(String topic, Headers 
headers, byte[] data) {
             SerializationStrategy serStrategy = 
parseSerializationStrategyFlag(dis.readByte());
             List<Integer> nullIndexList = null;
             if (serStrategy == SerializationStrategy.CONSTANT_SIZE) {
+                if (primitiveSize == null) {
+                    throw new SerializationException("Data is encode as 
constant size entries, but configured inner deserializer is not a known 
fixed-size deserializer.");

Review Comment:
   nit:typo encode ->encoded



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