C0urante commented on code in PR #12536:
URL: https://github.com/apache/kafka/pull/12536#discussion_r950692858
##########
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerConfig.java:
##########
@@ -409,6 +412,13 @@ public String groupId() {
return null;
}
+ public String kafkaClusterId() {
+ if (kafkaClusterId == null) {
+ kafkaClusterId = ConnectUtils.lookupKafkaClusterId(this);
+ }
+ return kafkaClusterId;
+ }
Review Comment:
Should we move the `lookupKafkaClusterId` logic from `ConnectUtils` to this
class, so that nobody accidentally starts using the variant that creates and
discards an admin client once per call?
--
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]