akalash commented on pull request #17187:
URL: https://github.com/apache/flink/pull/17187#issuecomment-916031226


   > shouldn't [refactor][runtime] Moved the INITIALIZING transition under 
cleanUp try-catch block be enough to fix the problem?
   
   Yes, you are almost right. This commit resolves the problem related to the 
exception after StreamTask was created but this commit doesn't resolve the 
problem if the exception happens inside of StreamTask constructor right after 
recordWriter is created. You can check my test 
`testRecordWriterClosedOnStreamTaskConstructorError` which reproduce this 
problem.


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