Add debezium-cdc module: Debezium 3.7.1 CDC from Postgres 18 to Kafka, Connect vs embedded engine vs outbox
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b5uEyg58znuchZ8C8i
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
e2c42dc268
commit
95e75d0101
@@ -0,0 +1,44 @@
|
||||
### Safety valve: the default cap on WAL a slot may pin (-1 = unlimited)
|
||||
max_slot_wal_keep_size
|
||||
------------------------
|
||||
-1
|
||||
(1 row)
|
||||
|
||||
|
||||
### Baseline: both connectors running, nothing unusual written
|
||||
slot_name | active | wal_kept_for_slot | unconfirmed
|
||||
----------------+--------+-------------------+-------------
|
||||
connect_orders | t | 2752 bytes | 2752 bytes
|
||||
connect_outbox | t | 1064 bytes | 432 bytes
|
||||
(2 rows)
|
||||
|
||||
|
||||
### Failure 1: healthy connectors, but all the writes go to a table nobody captures (100,000 rows, about 33 MB of WAL)
|
||||
slot_name | active | wal_kept_for_slot | unconfirmed
|
||||
----------------+--------+-------------------+-------------
|
||||
connect_orders | t | 33 MB | 33 MB
|
||||
connect_outbox | t | 33 MB | 33 MB
|
||||
(2 rows)
|
||||
|
||||
|
||||
### Failure 2: delete the outbox connector. Kafka Connect does not drop its slot.
|
||||
slot_name | active | wal_kept_for_slot | unconfirmed
|
||||
----------------+--------+-------------------+-------------
|
||||
connect_orders | t | 65 MB | 65 MB
|
||||
connect_outbox | f | 65 MB | 65 MB
|
||||
(2 rows)
|
||||
|
||||
|
||||
### Fix for 2: drop the orphaned slot by hand
|
||||
slot_name | active | wal_kept_for_slot | unconfirmed
|
||||
----------------+--------+-------------------+-------------
|
||||
connect_orders | t | 65 MB | 65 MB
|
||||
(1 row)
|
||||
|
||||
|
||||
### Fix for 1: heartbeat.interval.ms plus a heartbeat.action.query that writes to a captured table (public.heartbeat)
|
||||
slot_name | active | wal_kept_for_slot | unconfirmed
|
||||
----------------+--------+-------------------+-------------
|
||||
connect_orders | t | 656 bytes | 656 bytes
|
||||
(1 row)
|
||||
|
||||
Reference in New Issue
Block a user