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

   @SEZ9 Thanks for the follow-up — happy to spell out test coverage vs the 
three dropped paths in `accountForTasksDroppedAfterRollback` on `e3a9b8eb`.
   
   **Not in scope for these three branches:** 
`testDeployLocalTaskRollsBackAfterPostPublishFailureAndAllowsRedeploy` covers 
the `onContextPublished` side of #12164 (failure before cooperative/blocking 
submit). That path does not enqueue cooperative work or create blocking 
futures, so it does **not** exercise the three dropped `taskDone` cases.
   
   **Integration test that touches dropped paths (mostly indirectly):** 
`testDeployLocalTaskRollsBackAfterPartialBlockingSubmitRejection` (PART mode: 
one cooperative task enqueued, first blocking worker enters `call()`, second 
blocking `submit` rejected, third task never submitted).
   
   | Dropped case | Direct assertion that the rolled-back **tracker/generation 
completes**? | What the test actually asserts |
   |---|---|---|
   | **(1) Cooperative removed from `threadShareTaskQueue`** | **Indirect 
only.** | `threadShareQueueContainsLocation` is false; no active context; no 
cancellation future leak; `finishedExecutionContexts` contains the location; 
classloader ref count 0; later `deployTask` runs `ExecutionMarkerTask`. 
Rollback hygiene + successful redeploy — not an explicit check that completion 
bookkeeping / the result future reached a terminal state for the failed 
generation. |
   | **(2) Blocking never submitted** (`i >= blockingFutures.size()`) | 
**Indirect only.** | Same test: second submit throws after the first blocking 
probe starts; task `3L` never gets a future. Same indirect 
rollback/redeploy/classloader assertions; no assertion tied specifically to the 
“never submitted” index branch. |
   | **(3) Blocking future cancelled before `BlockingWorker` runs** 
(`isCancelled() && isDone()` without a started worker) | **No dedicated 
scenario today.** | Here the first blocking probe **does** enter `call()` 
(interruption asserted). The rejected task is case (2), not (3). Case (3) is 
defensive for futures that exist but have not started when rollback cancels 
them. |
   
   **Summary:** No single test directly asserts terminal completion for 
**each** of the three cases; **(1)** and **(2)** are covered **indirectly 
together** in 
`testDeployLocalTaskRollsBackAfterPartialBlockingSubmitRejection`, and **(3)** 
has **no dedicated scenario** yet (logic is in production code).
   
   If you think case (3) needs to be pinned explicitly, or you want a direct 
terminal-completion assertion for the failed generation in the partial-submit 
test, I can add that in a follow-up commit.


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