SbloodyS commented on PR #18667: URL: https://github.com/apache/dolphinscheduler/pull/18667#issuecomment-6307216768
### Incomplete fix: connection snapshots can still become misaligned with JobIDs [Source evidence] `dolphinscheduler-task-plugin/dolphinscheduler-task-flink/src/main/java/org/apache/dolphinscheduler/plugin/task/flink/FlinkTask.java:245–254` This is another trigger for the previously reported JobID-to-connection mapping problem, rather than a separate requirement. The tracker records every INSERT, but the Flink SQL Client prints `Job ID:` only when `table.dml-sync` is false. Consider a synchronous INSERT that finishes before a second job is submitted asynchronously: ```sql SET 'table.dml-sync' = 'true'; SET 'rest.address' = 'cluster-a'; INSERT INTO first_sink SELECT * FROM bounded_source; SET 'table.dml-sync' = 'false'; SET 'rest.address' = 'cluster-b'; INSERT INTO second_sink SELECT * FROM streaming_source; ``` The tracker produces two snapshots, while JobID collection recognizes only the second job. Index-based association consequently assigns cluster-a's settings to the job running on cluster-b, breaking cancellation and savepoints. Please complete the original fix by associating connection settings with actual submission records rather than assuming every tracked statement produces a recognized JobID. Add coverage for a completed synchronous INSERT followed by an asynchronous INSERT on another cluster. Reference: https://github.com/apache/flink/blob/release-1.16/flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliClient.java#L574-L596 ### [P2] Incomplete fix: shared REST TLS settings are still dropped [Source evidence] `dolphinscheduler-task-plugin/dolphinscheduler-task-flink/src/main/java/org/apache/dolphinscheduler/plugin/task/flink/FlinkArgsUtils.java:89–109` This is an incomplete implementation of the previously requested preservation of REST TLS settings. The filter now retains `security.ssl.rest.*`, but the REST client also consumes settings outside that prefix, including `security.ssl.protocol`, `security.ssl.provider`, and supported shared truststore fallback settings. For example, submission can specify `-Dsecurity.ssl.protocol=TLSv1.3` against a TLS-1.3-only endpoint. Cancellation/savepoint drops that option and uses the local configuration instead. With Flink 1.16's default TLSv1.2 setting, the handshake fails despite successful submission. Please preserve the shared TLS settings consumed by the REST client through both CLI-option and SQL SET extraction. Add control-command coverage for a non-default protocol and shared truststore settings. Reference: https://github.com/apache/flink/blob/release-1.16/flink-runtime/src/main/java/org/apache/flink/runtime/net/SSLUtils.java ### [P2] Regression introduced by this revision: savepoints bypass appInfo.log collection [Source evidence] `dolphinscheduler-task-plugin/dolphinscheduler-task-flink/src/main/java/org/apache/dolphinscheduler/plugin/task/flink/FlinkTask.java:302–340` The new per-job application mapping introduces a compatibility regression. Previously, `getYarnApplicationId()` called `getApplicationIds()`, which respects `appId.collect=aop` and reads application IDs from `appInfo.log`. The replacement, `getFlinkJobSubmissions()`, obtains application IDs exclusively from the task log. When the JobID appears in the task log but the application ID is available only in `appInfo.log`, the new submission record has a null application ID. Savepoint construction therefore omits `-yid`, losing previously available cluster targeting. Please preserve the configured application-ID collection source while retaining per-job associations. Use an unambiguous association where available, and report an explicit error when multiple applications cannot be associated reliably. Add coverage with a JobID-only task log and its application ID in `appInfo.log`. -- 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]
