[
https://issues.apache.org/jira/browse/CAMEL-27853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-27853:
--------------------------------
Description:
Found while improving the option descriptions of camel-flink for CAMEL-23832
(commit
https://github.com/apache/camel/commit/f9e89282ea330ac399422c39806c46d8db9c4777,
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_
was:
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_
> 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
> Priority: Minor
> Fix For: 4.25.0
>
>
> Found while improving the option descriptions of camel-flink for CAMEL-23832
> (commit
> https://github.com/apache/camel/commit/f9e89282ea330ac399422c39806c46d8db9c4777,
> 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)