Files
spring-messaging-demo/debezium-cdc/output/06-wal-retention.txt
T

45 lines
1.6 KiB
Plaintext

### 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)