-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
False
-
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?
1.9.2.Final
What is the connector configuration?
{ "connector.class": "io.debezium.connector.postgresql.PostgresConnector", "slot.name": "slot_tmp_pgtest_biz", "tasks.max": "1", "database.history.kafka.topic": "dbhistory_pgtest_biz", "publication.name": "pub_pgtest_biz", "tombstones.on.delete": "true", "decimal.handling.mode": "double", "value.converter": "io.confluent.connect.avro.AvroConverter", "key.converter": "io.confluent.connect.avro.AvroConverter", "database.tcpKeepAlive": "true", "database.user": "xxx", "database.dbname": "pgtest_biz", "database.history.kafka.bootstrap.servers": "t-edi-data-001:9092,t-edi-data-002:9092,t-edi-data-003:9092", "time.precision.mode": "connect", "connection.attempts": "1000", "database.server.name": "pgtest_biz", "heartbeat.interval.ms": "5000", "database.port": "5432", "plugin.name": "pgoutput", "value.converter.schema.registry.url": "http://t-edi-data-001:8081,http://t-edi-data-002:8081,http://t-edi-data-003:8081", "database.hostname": "xxxx.xx.xx.xx", "database.password": "xxxxx", "name": "source-tmp_pgtest_biz-connector", "table.include.list": "so.so_header", "key.converter.schema.registry.url": "http://t-edi-data-001:8081,http://t-edi-data-002:8081,http://t-edi-data-003:8081", "snapshot.mode": "never" }
What is the captured database version and mode of depoyment?
PostgreSQL 11.5
What behaviour do you expect?
debezium can capture field of type date of postgres.
What behaviour do you see?
debezium cannot capure field of type date of postgres, and prompt below error.
Caused by: java.time.format.DateTimeParseException: Text '2021-07-12' could not be parsed at index 10
at java.base/java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:2046)
at java.base/java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1874)
at io.debezium.connector.postgresql.connection.wal2json.DateTimeFormat$ISODateTimeFormat.lambda$timestampToInstant$3(DateTimeFormat.java:160)
at io.debezium.connector.postgresql.connection.wal2json.DateTimeFormat$ISODateTimeFormat.format(DateTimeFormat.java:150)
... 29 more
Do you see the same behaviour using the latest relesead Debezium version?
I have tested in 1.8.1, 1.9.2 and 2.0 Alpha, the issue still exist.
Do you have the connector logs, ideally from start till finish?
Please see the attachment.
How to reproduce the issue using our tutorial deployment?
Feature request or enhancement
For feature requests or enhancements, provide this information, please:
Which use case/requirement will be addressed by the proposed feature?
<Your answer>
Implementation ideas (optional)
<Your answer>
- links to
-
RHEA-2024:139598 Red Hat build of Debezium 2.5.4 release