scwhittle commented on issue #18592:
URL: https://github.com/apache/beam/issues/18592#issuecomment-3426286983

   One previously identified issue was that teardown may not be invoked on a 
DoFn if there is an exception calling setup on a different fused DoFn.
   
   However I believe that if the dataflow runner abandons a MapTaskExecutor for 
some reason not related to an exception in user processing (cache timeout or 
exception during backend commit) that we may not be invoking the teardown 
method.  This can lead to leaking resources if they are created in setup and 
require teardown to close them.  An example of this is the KafkaProducer in 
KafkaWriter  
[here](sdks/java/io/kafka/src/main/java/org/apache/beam/sdk/io/kafka/KafkaWriter.java#L57).


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