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

   @DanielLeens @SEZ9 — **single consolidated reply** on pushed head 
[`54f42174d0`](https://github.com/Rangsh/seatunnel/commit/54f42174d0). Yes, 
contributing to **Apache SeaTunnel**.
   
   **CI:** fork Build queued/running for this SHA — 
https://github.com/Rangsh/seatunnel/actions/runs/46267608955  
   **Local:** `./mvnw -pl seatunnel-engine/seatunnel-engine-server 
-Dtest=TaskExecutionServiceTest verify` — **33/33** pass.
   
   ---
   
   ## Daniel — blocking items (Issues 3, 4, C1, 5, 6)
   
   | Item | Status on `54f42174d0` | Evidence |
   |------|------------------------|----------|
   | **Issue 3** — atomic rollback vs worker ownership 
(`PENDING`→`RUNNING`/`DROPPED`); register before publish; latch tests | 
**Fixed** | `taskLifecycle` + `tryMarkRunning` / `tryMarkDropped`; 
`registerAllDeploymentTasks` before `onContextPublished`; gates: 
`testRollbackMarksDroppedBeforeBlockingOwnershipClaim`, 
`testRollbackOwnershipDroppedBlockingSkipsCallAfterClaimGate`, 
`testRollbackDoesNotCloseCooperativeTaskDuringCall` |
   | **Issue 4** — cooperative close-failure test scheduling | **Fixed** | 
`testRollbackSurvivesCooperativeCloseFailureAndAllowsRedeploy` + 
`cooperativeWorkerPollGateForTests`; `CloseThrowingCooperativeTask` without 
instant `stop=true` DONE |
   | **C1** — full task inventory; latch/`taskDone` on failed publish | 
**Fixed** | `registerAllDeploymentTasks` pre-publish; 
`accountForTasksDroppedAfterRollback` / `accountDroppedTask`; workers already 
**RUNNING** finish via worker `taskDone` (not rollback double-count); 
`assertFailedGenerationAccounting` on callback failure (`…PostPublishFailure…`, 
expect **1**) |
   | **Issue 5** — `addSuppressed` self-suppression | **Fixed** | 
`suppressCleanupFailure` + `testSuppressCleanupFailureSkipsSelfSuppression` |
   | **Issue 6** — field/method contract comments + PR test inventory | 
**Fixed** | Tracker Javadoc on lifecycle/accounting; PR description lists 
`TaskGroupContext` scope + **33** Surefire executions and new tests |
   
   ---
   
   ## SEZ9 — dropped paths → tests (Issue 1 / accounting thread)
   
   | Drop path | Test | Assertion |
   |-----------|------|-----------|
   | **1. Never submitted blocking** (index `>= blockingFutures.size()`) | 
`testDeployLocalTaskRollsBackAfterPartialBlockingSubmitRejection` | 
`assertFailedGenerationAccounting(..., 4)`; `PartialSubmitProbeTask` **4L** 
never enters `call()` |
   | **2. Cooperative removed from `threadShareTaskQueue`** | Same 
partial-submit test (task **1L** `threadsShare=true` enqueued then drained on 
rollback) + `testRollbackSurvivesCooperativeCloseFailureAndAllowsRedeploy` | 
partial: queue empty + latch **4**; close-failure: 
`assertFailedGenerationAccounting(..., 1)` + exactly one `close()` attempt |
   | **3. Cancelled before worker RUNNING** | 
`testRollbackAccountsBlockingCancelledBeforeWorkerStarts` | 
`assertFailedGenerationAccounting(..., 3)`; tasks **11L/12L** never enter 
`call()` |
   
   **`taskDone` on rollback deploy thread:** only when `tryMarkDropped` wins 
(**paths 1–2** above via `accountDroppedTask`).
   
   **`taskDone` *not* called on rollback:** when worker already owns 
**RUNNING** — `tryMarkDropped` returns false; worker reports `taskDone` in 
`BlockingWorker` `finally` / cooperative loop (generation size unchanged 
because worker still counts that id once). Rollback does **not** `close()` a 
cooperative task during active `call()` 
(`testRollbackDoesNotCloseCooperativeTaskDuringCall`).
   
   ---
   
   ## SEZ9 — earlier review bullets (non-blocker; one-line status)
   
   | Point | Status on `54f42174d0` |
   |-------|------------------------|
   | `deployLocalTask` Javadoc (post-publish FAILED vs pre-publish exceptional) 
| **Fixed** — method Javadoc in `TaskExecutionService` |
   | `submitBlockingTask` Javadoc (mid-batch rethrow without `startedLatch`) | 
**Fixed** |
   | Callback-side rollback test cleanup / static stop | **Fixed** — 
`testDeployLocalTaskRollsBackAfterPostPublishFailureAndAllowsRedeploy` + 
`ExecutionMarkerTask` + `finally` |
   | PR description mentions `TaskGroupContext` / volatile / claim-once | 
**Fixed** — PR body updated for this head |
   | `TaskGroupContext` setters bypass / `jars` volatile | **Fixed** — 
`@Setter(AccessLevel.NONE)` on `classLoaders` and `jars`; `jars` is `volatile` |
   | Assertions inside overridden `submit()` | **Fixed** — 
`firstBlockingCallGateSatisfied` / `TimedOut` asserted on test thread after 
deploy returns |
   | Partial-submit: executor + PART mode before `try`/`finally` | **Fixed** — 
setup at start of `try`, restore in `finally` |
   | Test helper cleanup | **Fixed** — shared 
`setBlockingTaskExecutorOverride`; removed unused `callCount()` |
   
   Please re-review on CI when green. Thanks.


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