Claus Ibsen created CAMEL-27677:
-----------------------------------

             Summary: camel-debezium-db2: offset converter options ignored, 
missing commit policy default, label
                 Key: CAMEL-27677
                 URL: https://issues.apache.org/jira/browse/CAMEL-27677
             Project: Camel
          Issue Type: Bug
          Components: camel-debezium
            Reporter: Claus Ibsen
             Fix For: 4.24.0


Found while improving the option descriptions of camel-debezium-db2 for 
CAMEL-23832 (commit 
https://github.com/apache/camel/commit/0a4015deb63b3d67d593647f67db240bb2a85f51).
These are separate problems of the component; the descriptions commit only 
documents the current behavior.

h4. 1. internalKeyConverter and internalValueConverter have no effect
{{EmbeddedDebeziumConfiguration.createDebeziumEmbeddedEngineConfiguration()}} 
passes the two options to Debezium as {{internal.key.converter}} and 
{{internal.value.converter}}. Debezium 3.7.1 does not read these properties: 
the offset stores ({{KafkaFileOffsetProvider}}, {{KafkaOffsetStoreProvider}}, 
{{KafkaConnectOffsetUtil}}) always use 
{{KafkaOffsetStoreConverter.jsonConverter(...)}}, a {{JsonConverter}} with 
{{schemas.enable=false}}. Kafka Connect also removed these properties in 3.0. A 
user who sets another converter sees no change. The same applies to all six 
debezium components.
Proposed change: deprecate the two options (and stop passing the properties), 
with an upgrade guide note.

h4. 2. offsetCommitPolicy has no defaultValue in the metadata
The field defaults to {{OffsetCommitPolicy.PeriodicCommitOffsetPolicy}}, but 
the {{@UriParam}} has no {{defaultValue}}, so the catalog and the docs show no 
default.
Proposed change: add {{defaultValue = 
"io.debezium.engine.spi.OffsetCommitPolicy$PeriodicCommitOffsetPolicy"}}.

h4. 3. additionalProperties has the label common
The component is consumer only and all other engine options in 
{{EmbeddedDebeziumConfiguration}} have the label {{consumer}}; 
{{additionalProperties}} has {{common}}.
Proposed change: use the label {{consumer}} for consistency.

_Claude Code on behalf of davsclaus_



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

Reply via email to