Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-8538

Debezium db2i CDC source connector randomly loses Events

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 3.4.0.Alpha1
    • None
    • ibmi-connector
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      In order to make your issue reports as actionable as possible, please provide the following information, depending on the issue type.

      Bug report

      For bug reports, provide this information, please:

      What Debezium connector do you use and what version?

      "class": "io.debezium.connector.db2as400.As400RpcConnector",
      "type": "source",
      "version": "3.0.4.Final"

      What is the connector configuration?

       

      {
          "connector.class" : "io.debezium.connector.db2as400.As400RpcConnector",
          "name" : "connector-name",
          "sanitize.field.names" : "true",
          "tasks.max" : "1",
          "database.hostname" : "AS400",
          "database.user" : "user",
          "database.password" : "pw",
          "database.port" : "8471",
          "database.dbname" : "DB",
          "database.schema" : "SCHEMA",
          "driver.secure" : false,
          "poll.interval.ms" : "5000",
          "table.include.list" : "SCHEMA.TABLE",
          "snapshot.mode" : "schema_only",
          "key.converter.schema.registry.url" : "http://schema-registry.prod.com/",
          "value.converter.schema.registry.url" : "http://schema-registry.prod.com/",
          "key.converter" : "io.confluent.connect.avro.AvroConverter",
          "value.converter" : "io.confluent.connect.avro.AvroConverter",
          "socket timeout" : "300000",
          "keep.alive" : "true",
          "topic.prefix" : "db2.cdc",
          "topic.creation.default.partitions" : 12,
          "topic.creation.default.replication.factor" : 4,
          "topic.creation.default.cleanup.policy" : "delete,compact",
          "transforms" : "InsertField",
          "transforms.InsertField.type" : "org.apache.kafka.connect.transforms.InsertField$Value",
          "transforms.InsertField.static.field" : "event_source",
          "transforms.InsertField.static.value" : "DB.SCHEMA.TABLE",
          "max.journal.timeout" : "300000",
          "header.converter": "org.apache.kafka.connect.storage.StringConverter",
          "log4j.logger.io.debezium": "DEBUG",
          "log4j.logger.org.apache.kafka": "DEBUG",   } 

       

      What is the captured database version and mode of deployment?

      7.4, on-premise

      What behavior do you expect?

      The Connector should capture all events from the Journal

      What behavior do you see?

      The Connector seems to randomly miss some journal entries. If the Connector is deployed twice with the same configuration (but different name), it manages to pick up the entry in one instance and not in the other one. We have tried running up to a 12 connectors at the same time pointing to the same journal/table but could not pinpoint what causes this behavior to occur. The journal entry type does not seem to effect if the event is picked up or not. We have also tried on a different table, but observed the same behavior. Behavior occurs on Journal mode BOTH as well as AFTER. We have set the log level to trace and debug for some Connectors, but could not see any error messages in the logs.

      Do you have the connector logs, ideally from start till finish?

      (You might be asked later to provide DEBUG/TRACE level log)

      Not yet, but can get them if needed.

       

        1. 0ab0f5bc-7a86-4424-a17b-4424a826b0a3.PNG
          10 kB
          Lukas Langegger
        2. e1c4a71f-2884-45cd-8b49-a4d20b921d5b.PNG
          44 kB
          Lukas Langegger
        3. ce8af09c-f420-440e-aa81-4a01b27b75e6.PNG
          108 kB
          Roman Kaufmann
        4. e264acf2-72e2-4ea3-bc8b-d8e738ecaeae.PNG
          72 kB
          Roman Kaufmann
        5. PKD_Journal.PNG
          31 kB
          Iban Tanovic
        6. Kibana_log.PNG
          164 kB
          Iban Tanovic
        7. PKD_Journal_detailed.PNG
          92 kB
          Iban Tanovic
        8. PKD_missing_events_new.PNG
          99 kB
          Iban Tanovic
        9. PKD_missing_events_KIBANA_new.PNG
          157 kB
          Iban Tanovic
        10. event_missing.PNG
          92 kB
          Iban Tanovic
        11. kibana_next_event.PNG
          273 kB
          Iban Tanovic
        12. logs_PKD.csv
          6.46 MB
          Iban Tanovic
        13. image-2025-01-16-12-12-55-347.png
          98 kB
          Iban Tanovic
        14. 1_thread_output.txt
          6 kB
          Iban Tanovic
        15. 5_threads_output.txt
          7 kB
          Iban Tanovic
        16. 5_threads.csv
          2.17 MB
          Iban Tanovic

              Unassigned Unassigned
              wltmlx Lukas Langegger (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: