Joe
03/11/2026, 10:46 PMkapa.ai
03/11/2026, 10:46 PMconfirmed_flush_lsn to automatically advance even when there are no new events for the publication tables â meaning the replication slot's LSN moves ahead of Airbyte's saved state, triggering this error. This is a known bug affecting connector versions 3.6.19 through at least 3.7.0. [CDC LSN issue]
2. Low Transaction Volume / WAL Disk Consumption
On databases with low write activity, the WAL log sequence number may not advance naturally, causing similar LSN mismatches. [WAL disk consumption]
-------------------------
Recommended Fixes
Option A: Upgrade to connector version 3.7.2+
A fix was released in version 3.7.2. Users have confirmed this resolves the issue. [CDC LSN issue]
Option B: Downgrade to connector version 3.6.18 or 3.6.15 (temporary workaround)
If upgrading isn't immediately possible, reverting to 3.6.18 or 3.6.15 has been confirmed to avoid the bug. [CDC LSN issue]
Option C: Set up a heartbeat table
This helps keep the LSN advancing on low-traffic databases:
1. Create the heartbeat table:
CREATE TABLE public.airbyte_heartbeat (
id SERIAL PRIMARY KEY,
timestamp TIMESTAMP NOT NULL DEFAULT current_timestamp,
text TEXT
);
2. Add it to your publication:
ALTER PUBLICATION <publicationName> ADD TABLE public.airbyte_heartbeat;
3. In the Postgres source connector UI, under Advanced â Debezium heartbeat query, enter:
INSERT INTO public.airbyte_heartbeat (text) VALUES ('heartbeat');
[WAL disk consumption; CDC LSN issue]
Option D: Change "Invalid CDC position behavior" to "Re-sync data"
In the connector's advanced settings, switching from Fail sync to Re-sync data will allow the sync to recover via a full refresh, though this is not ideal for large tables and the error may recur. [CDC LSN issue]
-------------------------
Summary: Since your WAL retention settings appear fine, the most likely culprit is the PgJDBC regression introduced in connector versions âĨ 3.6.19. The cleanest fix is to upgrade to connector version 3.7.2+, or use the heartbeat table workaround in the meantime. đ 0 button đ 0 button âšī¸ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.Joe
03/12/2026, 12:17 PM