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

   @SEZ9
   
   Thanks for the follow-up. As you noted, the two **High** items in [Daniel’s 
review 
6038243309](https://github.com/apache/seatunnel/pull/12218#pullrequestreview-6038243309)
 stay with @DanielLeens; see also 
[#7150067996](https://github.com/apache/seatunnel/pull/12218#issuecomment-7150067996)
 for how `0b242a3271` maps to those items.
   
   **Branch:** `fix/zeta-deploy-local-task-rollback-12164` · **HEAD:** 
`0b242a3271`
   
   ---
   
   ## Dropped-task accounting (Medium)
   
   Post-publish rollback calls `registerExpectedBlockingTasks` (before the 
blocking submit loop) and `accountForTasksDroppedAfterRollback` on rollback, 
including cooperative trackers removed from `threadShareTaskQueue` (`close()` + 
`taskDone` where applicable). Tests use **`assertFailedGenerationAccounting`**: 
`completionLatchRemainingForTests() == 0` and 
`tasksReportedDoneCountForTests()` equals the expected generation size 
(`lastLocalDeployExecutionTrackerForTests`).
   
   **Drop path → accounting → test**
   
   | Drop path | Accounting on rollback? | Test | Proof in test |
   |-----------|-------------------------|------|----------------|
   | **Never submitted** (blocking tail not accepted / never enters `call()`) | 
Yes | 
`TaskExecutionServiceTest.testDeployLocalTaskRollsBackAfterPartialBlockingSubmitRejection`
 | `assertFailedGenerationAccounting(..., 4)`; 
`PartialSubmitProbeTask.enteredCall(4L)` is false |
   | **Cancelled before start** (blocking cancelled or tail rejected; first 
blocking entered `call()` before tail reject) | Yes | 
`TaskExecutionServiceTest.testRollbackAccountsBlockingCancelledBeforeWorkerStarts`
 | `assertFailedGenerationAccounting(..., 3)`; `enteredCall(11L)` / 
`enteredCall(12L)` false |
   | **Removed from cooperative queue** (thread-share tracker drained; 
`close()` on initialized cooperative work) | Yes | **Primary:** 
`TaskExecutionServiceTest.testRollbackSurvivesCooperativeCloseFailureAndAllowsRedeploy`
 — `assertFailedGenerationAccounting(..., 1)`; rollback survives cooperative 
`close()` throwing **`Throwable`**; redeploy runs. **Secondary (mixed queue + 
blocking):** `testDeployLocalTaskRollsBackAfterPartialBlockingSubmitRejection` 
— cooperative queue has no residual trackers for the failed location; 
**`assertFailedGenerationAccounting(..., 4)`** includes the thread-share probe 
plus blocking probes. |
   
   **Which test covers “removal from the cooperative queue”?** → 
**`testRollbackSurvivesCooperativeCloseFailureAndAllowsRedeploy`** (primary). 
Partial-submit is the mixed path that also asserts the queue is drained.
   
   ---
   
   ## Checklist — fixed on HEAD vs only in `0b242a3271`
   
   You asked for **fixed in `0b242a3271` or pending** per item. Hygiene and 
docs mostly landed in **`6d6a380a9b`** / **`66af82ec9d`** / **`e778df2e24`**; 
**`0b242a3271` only extended accounting checks, submit gates in tests, 
cooperative `close(Throwable)` on rollback, and the cooperative close-failure 
regression.**
   
   | Item | Status |
   |------|--------|
   | **`deployLocalTask` Javadoc** — post-publish `rollbackPublishedDeployment` 
+ **FAILED** vs pre-publication **`completeExceptionally`** (Medium) | **Fixed 
on `6d6a380a9b`** (on HEAD). Not re-edited in `0b242a3271`. |
   | **Callback-side rollback test** — cleanup outside `finally`; 
`stop.set(true)` no effect on deserialized task | **Fixed on `6d6a380a9b`**. 
`ExecutionMarkerTask`: static `STOP`, `reset()` before redeploy, 
`requestStop()` in **`finally`** + `cancelTaskGroup`. |
   | **PR description** — `TaskGroupContext` public method + `volatile` fields 
| **Fixed on PR body** — Scope lists `TaskGroupContext.java`: 
`claimJarsForClassLoaderRelease()`, once-only release, **`classLoaders` / 
`jars` `volatile` with `@Setter(AccessLevel.NONE)`**. |
   | **`TaskGroupContext` setters / `volatile`** | **Fixed on `6d6a380a9b`**. 
`@Setter(AccessLevel.NONE)` on both maps; both **`volatile`**. |
   | **Assertions inside overridden `submit()`** swallowed by production `catch 
(Throwable)` | **Fixed on `66af82ec9d` / `6d6a380a9b`**. Custom `submit()` only 
sets gate flags and throws; assertions after deploy returns. |
   | **Partial-submit test** — rejecting executor and PART mode before 
`try`/`finally` | **Fixed on `6d6a380a9b`**. Setup inside **`try`**; restore in 
**`finally`**. |
   | **Test helper cleanup** — unused `callCount()`, inline FQ type, executor 
override “two ways” | **(1)** Removed unused `ExecutionMarkerTask.callCount()`; 
blocking override unified on **`setBlockingTaskExecutorOverride`** applied to 
**both** spy and real service (commented — spy does not share the field): 
**Fixed on `6d6a380a9b`**. **(2)** Inline 
`java.util.concurrent.CompletableFuture` local in 
**`assertFailedGenerationAccounting`** (`e778df2e24` / `0b242a3271`): **Pending 
(Low, non-blocking)** — can switch to the engine `CompletableFuture` import in 
a tiny follow-up or cleanup PR. |
   
   Low items marked **Pending** are non-blocking for Medium dropped-task 
accounting sign-off.
   
   ---
   
   ## CI
   
   Fork **Build** on **`0b242a3271`**: 
https://github.com/Rangsh/seatunnel/actions/runs/45525756694 — **success** 
(after re-run). First attempt failed on infra unrelated to #12164 
(`MavenWrapperMain` on unit-test; `DatabendCDCSinkIT` / Testcontainers on 
`all-connectors-it-6`). Local: **`TaskExecutionServiceTest` 29/29** on HEAD.
   
   If the drop-path table above truncates in your client, I can paste a 
one-screen version in a follow-up.


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