SEPURI-SAI-KRISHNA commented on PR #13495: URL: https://github.com/apache/seatunnel/pull/13495#issuecomment-7223553844
Thanks @DanielLeens for the review. Pushed `50c6fd0412` with the three points. **Issue 2, engine IT.** Two tests in `JobExecutionIT` on an in-process node, with a test sink whose aggregated committer records the subtasks it commits per deployment. The sink holds its writers in `createWriter`, which `SinkFlowLifeCycle.restoreState` calls before `open()` registers them. While they are held, the test cancels the committer's task group with `TaskExecutionService.cancelTaskGroup` (the call a job cancel makes for each task group) and waits until it has ended, then releases the writers. Cancelling one task group leaves the others running, since `SubPlan` only counts a CANCELED vertex. - `testSinkRegistrationWithEndedCommitterFailsTheJob`: the job ends FAILED with the error that names the ended committer. On dev it fails: after 64 s the error is `failed after retry 30 times` with `TaskGroupContextNotFoundException`. - `testRestoredPipelineRegistersWritersWithTheNewCommitter` (`job.retry.times = 1`): the restored pipeline's new committer commits both writers and the job ends FINISHED. It passes on dev too, after 69 s instead of about 10 s. A plain job cancel cannot pin this order: the sink cycle opens first, nothing a plugin owns runs in `open()` before `registerCommitter()`, and a cancel ends a task that has not opened yet. So the test ends only the committer's task group. **Issue 1.** The two `SinkRegisterOperation` tests run the operation against a spied `TaskExecutionService`: the ended case asserts exactly one `getTask` call, and the restore case publishes the new committer after a latch sees two failed lookups, with no sleep. The three registration tests use a 30 s watchdog, half of the 60 s that the retries take. **Finding 4.** The Javadoc of `isTaskGroupEnded` and `getCommitterTask` now says the check reads the context maps at the time of the call and is not a fence against a later deployment. engine-server unit tests: 744, 0 failures (5 skipped). `JobExecutionIT`: 11, 0 failures; the two new tests also passed in 5 further runs, one of them pinned to one CPU. -- 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]
