Claus Ibsen created CAMEL-27398:
-----------------------------------
Summary: camel-debezium - fail at startup when the folder of
offsetStorageFileName does not exist or cannot be written
Key: CAMEL-27398
URL: https://issues.apache.org/jira/browse/CAMEL-27398
Project: Camel
Issue Type: Improvement
Components: camel-debezium
Reporter: Claus Ibsen
Fix For: 4.24.0
With the default offset store
({{org.apache.kafka.connect.storage.FileOffsetBackingStore}}), Debezium saves
its position to {{offsetStorageFileName}}. When the folder of that file does
not exist (or is not writable), the consumer starts and sends the changes, but
every save of the position fails with only a WARN in the log. After a restart,
everything is sent again, the snapshot included.
The position is what makes a CDC source safe to restart, so this should not be
a WARN.
Expected:
{{EmbeddedDebeziumConfiguration.validateDebeziumEmbeddedEngineConfiguration()}},
which already checks that {{offsetStorageFileName}} is set for the file store,
also checks that its folder exists and is writable (and that the file, if it
exists, is writable), and the consumer fails at startup with a message that
names the file. The same for {{schemaHistoryInternalFileFilename}} of the
connectors that use a file schema history (MySQL, SQL Server, Oracle, Db2).
Found while adding the debezium-postgresql-source Kamelet to the Kamelet
catalog (apache/camel-kamelets#3363, 2026-11-22).
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)