snehashisp commented on code in PR #17988:
URL: https://github.com/apache/kafka/pull/17988#discussion_r1996162968


##########
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/AbstractWorkerSourceTask.java:
##########
@@ -391,6 +391,11 @@ public void execute() {
         finalOffsetCommit(false);
     }
 
+    @Override
+    public String taskVersion() {
+        return task.version();

Review Comment:
   Opted to compute it during initialization. Plugins don't have description 
entries for tasks, only connectors so fetching the task versions would be 
complicated and require us to somehow get the associated connector version. 
This may also not be accurate if the version overrides for connector and its 
task don't match. 



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