SEZ9 commented on PR #12218:
URL: https://github.com/apache/seatunnel/pull/12218#issuecomment-7203607616

   @Rangsh thanks for the detailed write-up.
   
   **Dropped-task accounting (Medium)**
   
   From your description, the approach in `0b242a3271` addresses the point:
   
   - `registerExpectedBlockingTasks` runs before the blocking submit loop.
   - `accountForTasksDroppedAfterRollback` runs on rollback, including the 
cooperative trackers removed from `threadShareTaskQueue`.
   - `assertFailedGenerationAccounting` checks 
`completionLatchRemainingForTests() == 0` and 
`tasksReportedDoneCountForTests()` against the expected generation size.
   
   This is based on your description only, and I need two things before closing 
it:
   
   1. Your comment reached me cut off partway through the "Never submitted" row 
of the drop-path table. Could you repost the table? For each of the three paths 
(never submitted, removed from the cooperative queue, cancelled before start), 
I need the test name and the assertion that proves it.
   2. You wrote "`close()` + `taskDone` where applicable" for the cooperative 
trackers. In which case is `taskDone` not called, and how is that task still 
counted towards the expected generation size?
   
   **Other points from the previous review**
   
   The part of your comment I received does not cover these, so please give a 
one-line status for each (fixed in `0b242a3271`, or intentionally left with a 
reason):
   
   - **`deployLocalTask` Javadoc:** it should document the post-publish 
rollback and its different completion mode.
   - **Callback-side rollback test:** cleanup sits outside `finally`, and 
`stop.set(true)` has no effect on the deserialized task.
   - **PR description:** it should mention the `TaskGroupContext` changes (the 
new public method and the `volatile` field).
   - **`TaskGroupContext` setters:** the class-level setter annotation lets 
`setClassLoaders`/`setJars` bypass the claim-once invariant, and `jars` is not 
`volatile` while `classLoaders` is.
   - **Assertions inside the overridden `submit()`:** they are swallowed by the 
production `catch (Throwable)`.
   - **Partial-submit test:** the rejecting executor and PART mode are 
installed on the shared server before the `try`/`finally`.
   - **Test helper cleanup:** the unused `callCount()` accessor, the inline 
fully-qualified type, and the two different ways of setting the executor 
override.
   
   <!-- streview-comment:2629 -->


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