SEPURI-SAI-KRISHNA commented on issue #13319: URL: https://github.com/apache/seatunnel/issues/13319#issuecomment-6985630799
I'd like to work on this issue. Plan: keep the fix inside `submitThreadShareTask`. A task whose `init()` fails already records the exception and calls `taskDone` for itself. Every task that is then not submitted (after that failure, or after a cancellation) will also call `taskDone`, and only non-null trackers go to `threadShareTaskQueue`. The completion latch then reaches zero, `finishExecution` removes the context, and the group completes FAILED with the real `init()` error, so the master restores the pipeline instead of hanging, and a redeploy is not skipped. Test: a `TaskExecutionServiceTest` case in thread-share mode where the first of two tasks fails `init()`: no NPE, the second task is not initialized, and the group completes FAILED with the injected error. Removing a published context when the submission itself throws is the scope of #12218, so this change leaves `deployLocalTask` as it is. -- 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]
