showuon commented on code in PR #11781:
URL: https://github.com/apache/kafka/pull/11781#discussion_r901426968


##########
connect/runtime/src/main/java/org/apache/kafka/connect/util/KafkaBasedLog.java:
##########
@@ -381,6 +435,10 @@ Map<TopicPartition, Long> 
readEndOffsets(Set<TopicPartition> assignment, boolean
             } catch (UnsupportedVersionException e) {
                 // This may happen with really old brokers that don't support 
the auto topic creation
                 // field in metadata requests
+                if (requireAdminForOffsets) {
+                    // Should be handled by the caller during log startup
+                    throw e;

Review Comment:
   SGTM. 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