lct45 commented on a change in pull request #9383: URL: https://github.com/apache/kafka/pull/9383#discussion_r501329620
########## File path: streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamsPartitionAssignor.java ########## @@ -212,6 +213,7 @@ public void configure(final Map<String, ?> configs) { rebalanceProtocol = assignorConfiguration.rebalanceProtocol(); taskAssignorSupplier = assignorConfiguration::taskAssignor; assignmentListener = assignorConfiguration.assignmentListener(); + uniqueField = usedSubscriptionMetadataVersion >= 8 ? new byte[1] : new byte[0]; Review comment: The autocode generator throws an error if `array.length != 0` and the version is < 8. It didn't seem to be a huge problem but there were some tests that used version 1 so initializing to `new byte[1]` threw errors ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org