Admaing commented on PR #18667:
URL: 
https://github.com/apache/dolphinscheduler/pull/18667#issuecomment-6494367556

   Thanks — the branch is at 56c5d85d, and the three findings of your last 
review are addressed:
   
   1.Failed output collection is no longer reported as collected: 
awaitCollected() returns false on an exceptional completion, 
collectProcessLog() completes exceptionally, and cancellation fails on an 
uncollected log 
(AbstractCommandExecutorTest#testAwaitCollectedWhenTheCollectionFailed, 
FlinkTaskTest#testCancelApplicationFailsWhenTheSubmissionOutputIsNotCollected). 
A JobID that arrives while the client is stopped is still cancelled 
(testCancelApplicationHandlesAJobIdWhichArrivesAfterTheDrainTimeout).
   
   
   2.Savepoints attempt every collected job and aggregate the failures 
(FlinkStreamTaskTest#testSavePointAttemptsEveryJobBeforeReportingFailures).
   
   3.Compiled plans count as job-producing statements (EXECUTE PLAN, COMPILE 
AND EXECUTE PLAN), covered for extraction, cancellation and savepoint.
   
   The stop path itself also changed since your last review: 1.17+ 
synchronous-DML detection no longer relies on the message removed in 1.17; 
savepoint failures reach the task log and the API; kill/RM failures are 
propagated within the task/worker path; -D credentials are masked in the 
command and script logs; "Job could not be found" only counts as success for a 
cancel without cluster targeting.
   
   Behaviour I accepted rather than changed, for this issue:
   
   - A stop failure is not visible in the API: the kill is asynchronous in the 
task executor, so the worker returns "accepted" and the failure stays in the 
task log. The savepoint path is synchronous and does return the failure through 
the RPC and the API. Propagating kill results is a platform change, out of 
scope here.
   
   - Stopping a SQL task while the client is still starting reports "no result" 
— deliberately conservative: on 1.17+ a running synchronous DML prints nothing 
at all, so suppressing it would hide the original problem. Pinned by 
testCancelApplicationReportsJobsWhichTheClientDidNotReport.
   
   - A targeted "Job could not be found" is a failure (it can also mean the 
cancel reached the wrong endpoint), so a job that finished normally on a 
targeted endpoint is reported too. The check currently treats any cluster 
connection option as targeting, TLS-only settings included — I can narrow it to 
endpoint-selecting options.
   
   - savePoint() reads the live log (best effort); a script/JobID mismatch only 
warns; up to three log scans per cancel; the savepoint timeout is 600 s and 
blocks the RPC for that time.
   
   - Credential masking covers -D values whose key contains 
password/passwd/secret/token/credential, and it is a log mask only.
   
   - On a host that cannot list the process tree (pstree/ps unavailable) only 
the root process is terminated, so descendants may survive.
   - 
   Local run on JDK 11: task-api 156, flink 91 (1 skipped on this host), 
flink-stream 30 — all green. Please confirm the two trade-offs above (async 
stop visibility, conservative stop-during-startup) are acceptable as scoped.


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