I'm having an issue with postgres CDC that I don't...
# replication-troubleshooting
a
I'm having an issue with postgres CDC that I don't quite understand. We have 20+ sources, most of which are successfully syncing. One source was syncing properly, but about a week ago started consistently encountering issues in debezium (logs in thread). Any ideas what could be causing this? I haven't been able to figure out what is different/unique about this source. I've tried resetting from airbyte, dropping and re-created replication slot + publication, etc - can't get it back to functioning normally.
Copy code
2023-02-27 18:12:30 source > Signalling close because record's LSN : PgLsn{lsn=2369017551216} is after target LSN : PgLsn{lsn=2369017548000}
2023-02-27 18:12:30 source > Closing: Change event reached target position
2023-02-27 18:12:30 source > Stopping the embedded engine
2023-02-27 18:12:30 source > Waiting for PT5M for connector to stop
2023-02-27 18:17:30 source > Stopping the task and engine
2023-02-27 18:17:30 source > Stopping down connector
2023-02-27 18:19:00 source > Coordinator didn't stop in the expected time, shutting down executor now
2023-02-27 18:19:00 source > Producer failure
Stack Trace: org.apache.kafka.connect.errors.ConnectException: Error while processing event at offset {transaction_id=null, lsn_proc=2369196328736, lsn_commit=2369196328736, lsn=2369196328736, txId=569579630, ts_usec=1677520222253626}
	at io.debezium.pipeline.EventDispatcher.dispatchDataChangeEvent(EventDispatcher.java:246)
	at io.debezium.connector.postgresql.PostgresStreamingChangeEventSource.lambda$processMessages$0(PostgresStreamingChangeEventSource.java:275)
	at io.debezium.connector.postgresql.connection.pgoutput.PgOutputMessageDecoder.decodeUpdate(PgOutputMessageDecoder.java:465)
	at io.debezium.connector.postgresql.connection.pgoutput.PgOutputMessageDecoder.processNotEmptyMessage(PgOutputMessageDecoder.java:194)
	at io.debezium.connector.postgresql.connection.AbstractMessageDecoder.processMessage(AbstractMessageDecoder.java:33)
	at io.debezium.connector.postgresql.connection.PostgresReplicationConnection$1.deserializeMessages(PostgresReplicationConnection.java:510)
	at io.debezium.connector.postgresql.connection.PostgresReplicationConnection$1.readPending(PostgresReplicationConnection.java:502)
	at io.debezium.connector.postgresql.PostgresStreamingChangeEventSource.processMessages(PostgresStreamingChangeEventSource.java:215)
	at io.debezium.connector.postgresql.PostgresStreamingChangeEventSource.execute(PostgresStreamingChangeEventSource.java:177)
I peeked into the debezium source, and those shutdown timeouts are hardcoded. So, seems like the expectation is that there should be no delay in shutdowns.
l
Do you have any update? I have the same problem with the MySQL connector
a
I updated to latest release (0.41.0 when I did the update), which had a fix I wanted for k8s pod limits. This magically went away after that. I saw it once this week again, but it resolved fully on its own.
Well, a different source has started doing this again this morning. Anyone have any insights into what exactly puts debezium in this state? I see that there are new source connectors released using a newer version of debezium, so I'll try to update to that. Unfortunately, I can't get the settings pages to load on either of my airbyte installations this morning, they're both timing out with defintions retrieval. I'll try updating airbyte as well, before just sneaking into the database to change the connector version.
@Luis Martinez the fix should be coming soon: https://github.com/airbytehq/airbyte/pull/24166
🙏 1