SEZ9 commented on PR #12218:
URL: https://github.com/apache/seatunnel/pull/12218#issuecomment-7144951092
@Rangsh thanks for the follow-up on `e778df2e24`. Going by your description
(I have not re-checked the code yet), the three production changes line up with
the three drop paths behind the dropped-task finding:
- **Never submitted:** `registerExpectedBlockingTasks(tasks)` runs before
the submit loop, so an unvisited tail after a mid-batch rejection is still
accounted for.
- **Cancelled before start:** `markBlockingWorkerEnteredRun` lets
`accountForTasksDroppedAfterRollback` skip workers that are still unwinding,
instead of treating `isCancelled() && isDone()` as "never started".
- **Removed from the cooperative queue:** trackers removed from
`threadShareTaskQueue` are `close()`d before `taskDone`, with a final sweep for
initialized cooperative tasks.
As described, that is what the finding asked for: the rolled-back tracker
should be able to complete on its own.
A few things I still need:
1. **Test table:** I can only see the start of the first row ("Unvisited
blocking tail + failed generation c"). Could you repost it, so I can see which
test covers each of the three drop paths?
2. **`deployLocalTask` Javadoc:** does it now document the post-publish
rollback and its different completion mode, not only the pre-publication
failure contract?
3. **PR description:** has it been updated to say that `TaskGroupContext`
also changes (a new public method and a `volatile` field)?
4. **`TaskGroupContext`:** the class-level Lombok setter annotation still
lets `setClassLoaders`/`setJars` bypass the claim-once invariant, and `jars` is
not `volatile` while `classLoaders` is. Has this changed, or is it
intentionally left?
5. **`TaskExecutionServiceTest`:** what is the status of each of these?
- The callback-side rollback test cleans up outside `finally`, and its
`stop.set(true)` has no effect on the deserialized task.
- Assertions inside the overridden `submit()` are swallowed by the
production `catch (Throwable)`.
- The partial-submit test installs the rejecting executor and PART mode
before entering its `try`/`finally`.
- The helpers leave an unused `callCount()` accessor, use an inline
fully-qualified type, and set the executor override two different ways.
A one-line status per item (fixed on `e778df2e24`, or deliberately left with
the reason) is enough.
<!-- streview-comment:2581 -->
--
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]