kumarpritam863 commented on issue #13593:
URL: https://github.com/apache/iceberg/issues/13593#issuecomment-3116505805

   @mblesak
   The sinktaskContext is intialized on initialisation of WorkerSinkTask itself 
which you can look here:
   
https://github.com/apache/kafka/blob/a27d6e32b0265dbb364c3c4533b8261d62ee837a/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerSinkTask.java#L162
   
   A sinkTask initialise, start, stop, close and other functions and in short 
lifecycle starts only after this, so it will never happen that sinkTaskContext 
is null.
   
   But just to be on defensive side I will add the partition emptiness check to 
make sure we do not attempt to close the resources if not needed.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to