Closed thomasfodor closed 2 months ago
Thanks for your bug report, I've now reproduced it and have a local fix I've also raised the issue in the official repo now it's been adopted by debezium: https://issues.redhat.com/browse/DBZ-7957 https://github.com/debezium/debezium-connector-ibmi/pull/16
FYI the missing before data was really useful information for tracking this down, I'd not noticed this issue as it's often the before data that's missing and we don't use that Thank you
fixed
During connector testing, I stumbled upon an issue where messages or part of the message would sometimes be missing.
Issue 1: BEFORE missing
The issue would go something like this:
Row 1: Column A Original value ABC -> Kafka message from initial load produced correctly (before null, after set) Change value to ABD -> Kafka message produced correctly (before set, after set) Change value back to ABC -> Kafka message produced incorrectly (before null, after set) Change value back to ABD -> Kafka message produced incorrectly (before null, after set)
As you can see, the BEFORE value was null, even though there should have been one (I edited the same row back and forth as described and could produce this issue quite easily). The table has BOTH journal activated, and the journal table produces the entries correctly it seems:
On a table that uses only AFTER logs, events are produced normally, except in the case mentioned above - then the message would be entirely absent. This seems to be a known issue according to https://github.com/jhc-systems/debezium-connector-ibmi?tab=readme-ov-file#no-journal-entries-found-check-journalling-is-enabled-and-set-to-both, so the main focus is the issue with the BOTH journal table.
Connector config used:
Some notes:
Issue 2: No change detection when using ExtractField transformers
When using ExtractField transformers, no messages beyond the initial load are produced (and certainly, the journal does produce them). No matter what changes, there is no output Kafka message. Kafka connector setup is identical to above with the following addition:
The same issue occurs if we use a value transformer, even when removing the key transformer:
Any help or suggestion how to avoid this would be appreciated. Thanks :)