Claus Ibsen created CAMEL-27853:
-----------------------------------

             Summary: camel-flink: jobName is not used, endpoint options are 
applied only to the first environment, invalid modes are only logged
                 Key: CAMEL-27853
                 URL: https://issues.apache.org/jira/browse/CAMEL-27853
             Project: Camel
          Issue Type: Bug
          Components: camel-flink
            Reporter: Claus Ibsen
             Fix For: 4.25.0


Found while improving the option descriptions of camel-flink for CAMEL-23832 
(pull request https://github.com/apache/camel/pull/31144).
These are separate problems of the component; the descriptions change only 
documents the current behavior.

h4. 1. jobName is not used
FlinkEndpoint.jobName has a getter and setter, but DataStreamFlinkProducer 
never reads it; the doc examples set it as if it worked.
Proposed change: pass it on, or deprecate the option.

h4. 2. The options are applied once
{{DataStreamFlinkProducer.configureStreamExecutionEnvironment}} runs on the 
first message only (environmentConfigured flag). A later CamelFlinkDataStream 
header with a DataStream of another environment silently does not get 
executionMode, parallelism and the checkpoint options.
Proposed change: track configured environments by identity, or configure each 
call.

h4. 3. Invalid values are only logged
An invalid executionMode or checkpointingMode is logged at WARN and ignored (a 
property placeholder value is not caught by the catalog enum check).
Proposed change: throw IllegalArgumentException.

h4. 4. A deprecated Flink method is used
CheckpointConfig.setCheckpointingMode(org.apache.flink.streaming.api.CheckpointingMode)
 is deprecated in Flink 1.20.
Proposed change: use setCheckpointingConsistencyMode.

h4. 5. A checkpointInterval of 1-9 fails every message
Flink throws IllegalArgumentException below 10 ms, and as environmentConfigured 
is never set, every message fails.
Proposed change: validate the value.


_Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to