zhangshenghang commented on PR #13339: URL: https://github.com/apache/seatunnel/pull/13339#issuecomment-7231048380
@SEPURI-SAI-KRISHNA @DanielLeens — agreed on all the boundaries you traced, and sorry for not calling them out earlier. Plan for this PR, keeping them together as asked: 1. Reset-generation boundary: `resetExecutionState` currently clears `currentExecutionId` before the next deployment assigns one, and `updateStateByExecutionService` only rejects a mismatch when both ids are non-null, so the reset -> resource-allocation gap has no defined owner. I will stop clearing the id to `null`: keep the last deployed id plus an explicit reset generation, so a terminal report tagged with the previous id while the vertex is resetting is classified as stale and dropped, rather than accepted because the current id is unknown. 2. Strictness: `updateStateByExecutionService` will reject any event whose executionId differs from the expected one whenever an expected id is known (including during the reset gap), and accept an untagged event only under one documented rule (no deployment in flight). I will also capture the `TaskGroupContext` once and use that captured object instead of `containsKey` + `get`, so a concurrent removal cannot turn the lookup into a different context between the two calls. 3. Exceptional reports: `TaskExecutionService.deployLocalTask`'s exceptional-result branch will tag its FAILED report with the deployment `executionId`, exactly like the normal terminal path, so an old attempt's exception cannot be attributed to the new attempt. 4. Tests: old report arriving before the new attempt id is assigned; old report after it is assigned; untagged exceptional report; concurrent context removal. These will be deterministic interleavings rather than sleeps. Note the link to #13338: that PR needs the same attempt identity to stop the restore-error retry with the attempt, so I will use this executionId as the single attempt token in both rather than introducing a second one. -- 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]
