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

Suppress logging of undetermined optionality for explicitly excluded columns

XMLWordPrintable

    • False
    • None
    • False

      What Debezium connector do you use and what version?

      Described case is relevant for PostgreSQL debezium source connector version 2.0

      What is the connector configuration?

       

      {
        "name": "source",
        "config": {
          "connector.class": "io.debezium.connector.postgresql.PostgresConnector",
          "plugin.name": "pgoutput",
          "tasks.max": "1",
          "database.hostname": "{{postgres_host}}",
          "database.port": "5432",
          "database.user": "******",
          "database.dbname": "postgres",
          "database.password": "*****",
          "topic.prefix": "dev_env_PG0",
          "schema.include.list": "pg0_bt",
          "table.include.list": "pg0_bt\\.play_sessions_actual_\\d+",
          "column.exclude.list": "pg0_bt\\.play_sessions_actual_\\d+\\.(game_symbol|ext_currency_symbol|internal_id_mod|internal_account|generic_game_symbol|external_playerid|currency_symbol)",
          "publication.name": "dbz_pub",
          "snapshot.mode": "never",
          "slot.drop.on.stop": false,
          "skipped.operations": "d,t",
          "errors.log.enable": true,
          "errors.log.include.messages": true,
          "tombstones.on.delete": false,
          "include.schema.changes": false,
          "transforms": "unwrap,reroute",
          "transforms.unwrap.type": "io.debezium.transforms.ExtractNewRecordState",
          "transforms.unwrap.drop.tombstones": "true",
          "transforms.reroute.type": "io.debezium.transforms.ByLogicalTableRouter",
          "transforms.reroute.key.enforce.uniqueness": "false",
          "transforms.reroute.topic.regex": ".*\\.(play_sessions_actual)_\\d+",
          "transforms.reroute.topic.replacement": "dev_env_PG0.pg0_bt.$1",
          "decimal.handling.mode": "string",
          "time.precision.mode": "connect"
        }
      }
       

       

      What is the captured database version and mode of depoyment

      Server: PostgreSQL 14.5 (Ubuntu 14.5-1.pgdg20.04+1)

      Driver: PostgreSQL JDBC Driver 42.2.5

      What behaviour do you expect?

      Absence of optionality info for excluded columns should not cause WARN logs.

      What behaviour do you see?

      The following message appears in log:

      ...
      2022-10-27 11:59:19,421 WARN   Postgres|dev_env_PG0|streaming  Column 'internal_account' optionality could not be determined, defaulting to true   [io.debezium.connector.postgresql.connection.pgoutput.PgOutputMessageDecoder]
      2022-10-27 11:59:19,421 WARN   Postgres|dev_env_PG0|streaming  Column 'currency_symbol' optionality could not be determined, defaulting to true   [io.debezium.connector.postgresql.connection.pgoutput.PgOutputMessageDecoder]
      2022-10-27 11:59:19,421 WARN   Postgres|dev_env_PG0|streaming  Column 'ext_currency_symbol' optionality could not be determined, defaulting to true   [io.debezium.connector.postgresql.connection.pgoutput.PgOutputMessageDecoder]
      ...

      Do you see the same behaviour using the latest relesead Debezium version?

      (Ideally, also verify with latest Alpha/Beta/CR version)

      YES

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

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

      YES

      How to reproduce the issue using our tutorial deployment?

      Create source connector with specified configuration for corresponding table in database.

      Please checkout this zulip thread for more info: link

              Unassigned Unassigned
              anton-ovcharenko Anton Ovcharenko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: