[source-postgres] CDC Not Working With Connector Version 3.6.22 (PgJDBC Issue) #49802
Labels
area/connectors
Connector related issues
community
connectors/source/postgres
team/db-dw-sources
Backlog for Database and Data Warehouse Sources team
type/bug
Something isn't working
Connector Name
source-postgres
Connector Version
3.6.22
What step the error happened?
During the sync
Relevant information
Summary
After upgrading the source version to
3.6.22
, and on running Postgres Sync Job using CDC, we face the issue of repeatedly failing pipelines or repeatedly refreshing pipelines (depending on the value for Invalid CDC position behavior Property). We traced back the issue to the PgJDBC version used. The version injected into Debezium by Airbyte automatically advances theconfirmed_flush_lsn
in cases there are no changes for the publication tables in the replication slot.Details
Fail sync
, Output Log is:Re-sync data
, Output Log is:The cause for this issue is that starting from postgres source 3.6.19 the
datastore-postgres
started usingapi 'org.postgresql:postgresql:42.7.4'
datastore-postgres
is taken as a dependency insource-postgres
All versions of the PgJDBC starting
42.7.0
cannot be used with debezium because it automatically flushes the LSN in case there is no new events are coming out of the replication stream given a publication but the WAL is still full with changes out of the used publication. Refer to the following links:In the related logs, the PgJDBC version used is only visible when there is a transient error that takes place when closing the stream.
Proposed Solutions
3.6.18
datastore-postgres
to anything less than42.7.0
Related Airbyte Issues
Relevant log output
Contribute
The text was updated successfully, but these errors were encountered: