jolshan commented on a change in pull request #10584: URL: https://github.com/apache/kafka/pull/10584#discussion_r649472712
########## File path: clients/src/main/java/org/apache/kafka/common/requests/MetadataRequest.java ########## @@ -92,6 +93,13 @@ public MetadataRequest build(short version) { if (!data.allowAutoTopicCreation() && version < 4) throw new UnsupportedVersionException("MetadataRequest versions older than 4 don't support the " + "allowAutoTopicCreation field"); + if (data.topics() != null) { Review comment: I think this one is needed as we can't remove in java files. I tried to remove all of the ones in scala files. -- 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