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
          0ab0f5bc-7a86-4424-a17b-4424a826b0a3.PNG
          10 kB
        2. 1_thread_output.txt
          6 kB
        3. 5_threads_output.txt
          7 kB
        4. 5_threads.csv
          2.17 MB
        5. all_kafka_logs.zip
          7.09 MB
        6. ce8af09c-f420-440e-aa81-4a01b27b75e6.PNG
          ce8af09c-f420-440e-aa81-4a01b27b75e6.PNG
          108 kB
        7. e1c4a71f-2884-45cd-8b49-a4d20b921d5b.PNG
          e1c4a71f-2884-45cd-8b49-a4d20b921d5b.PNG
          44 kB
        8. e264acf2-72e2-4ea3-bc8b-d8e738ecaeae.PNG
          e264acf2-72e2-4ea3-bc8b-d8e738ecaeae.PNG
          72 kB
        9. event_missing.PNG
          event_missing.PNG
          92 kB
        10. ibmi_rerun.zip
          414 kB
        11. ibmi.zip
          1.22 MB
        12. image-2025-01-16-12-12-55-347.png
          image-2025-01-16-12-12-55-347.png
          98 kB
        13. Kibana_log.PNG
          Kibana_log.PNG
          164 kB
        14. kibana_logs_detailed.zip
          8.90 MB
        15. kibana_logs.zip
          13.82 MB
        16. kibana_next_event.PNG
          kibana_next_event.PNG
          273 kB
        17. logs_PKD.csv
          6.46 MB
        18. PKD_Journal_detailed.PNG
          PKD_Journal_detailed.PNG
          92 kB
        19. PKD_Journal.PNG
          PKD_Journal.PNG
          31 kB
        20. PKD_Kibana_missing_event_debug_trace.zip
          4.18 MB
        21. PKD_missing_events_KIBANA_new.PNG
          PKD_missing_events_KIBANA_new.PNG
          157 kB
        22. PKD_missing_events_new.PNG
          PKD_missing_events_new.PNG
          99 kB
        23. test_rerun.zip
          278 kB

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

                Created:
                Updated: