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

   **Follow-up** — code is now on fork at **`54f42174d0`**. Re-read comments 
[#7256481488](https://github.com/apache/seatunnel/pull/12218#issuecomment-7256481488)
 / 
[#7256481710](https://github.com/apache/seatunnel/pull/12218#issuecomment-7256481710)
 against this SHA; one correction below.
   
   @DanielLeens — the earlier table still applies on `54f42174d0`. Mapping to 
your blocking items:
   - **Issue 3:** `taskLifecycle` + `tryMarkRunning` / `tryMarkDropped`; 
`registerAllDeploymentTasks` **before** `onContextPublished` (line order in 
`deployLocalTask`); test gates on before-claim / after-claim / cooperative 
poll; `testRollbackDoesNotCloseCooperativeTaskDuringCall`.
   - **Issue 4:** cooperative close-failure test gates dequeue with 
`cooperativeWorkerPollGateForTests`; `CloseThrowingCooperativeTask` no longer 
instant-DONE via `stop=true`.
   - **C1:** full id inventory at register time; 
`accountForTasksDroppedAfterRollback` + `accountDroppedTask` for tasks that 
will not self-`taskDone`; blocking/cooperative workers that already own 
**RUNNING** still finish via worker `finally` / loop `taskDone` (see tracker 
Javadoc on `accountForTasksDroppedAfterRollback`).
   - **Issue 5 / 6:** as in prior comment; PR description lists **33** Surefire 
executions.
   
   @SEZ9 — **correction to 
[#7256481710](https://github.com/apache/seatunnel/pull/12218#issuecomment-7256481710):**
 the opening line “all three paths via `accountDroppedTask` → `taskDone`” was 
imprecise.
   
   | Path | `taskDone` owner | `close` on rollback deploy thread? |
   |------|------------------|-----------------------------------|
   | **1. Never reached RUNNING** (queue removed / cancelled future / unvisited 
tail) | rollback: `accountDroppedTask` → `close` + `taskDone` | yes (when drop 
CAS wins) |
   | **2. DROPPED wins before RUNNING** | rollback: `accountDroppedTask`; 
worker returns after failed `tryMarkRunning` **without** `taskDone` | yes |
   | **3. Worker already RUNNING** | **worker** (`taskDone` in `finally` / 
cooperative loop); `tryMarkDropped` returns false so rollback does **not** 
double-count | rollback **does not** `close()` while cooperative is in 
`call()`; worker may `close` after abort |
   
   `taskDone` is **skipped** on rollback only when `tryMarkDropped` loses to 
**RUNNING** (worker still owns completion).
   
   Please re-review `54f42174d0` on CI when green.


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