Hey friends, when replicating data using CDC, in cases that there are many updates in a database that is being tracked but only a tiny number of updates are related to the table(s) and schema(s) for which the connector is capturing changes, the connector reads from the database transaction log as usual but rarely emits change records. This means that no offset updates are committed and the connector does not have an opportunity to send the latest retrieved LSN to the database. The database retains WAL files that contain events that have already been processed by the connector and this can generate storage problems.
I've tried using the LSN commit behavior: While reading data, however the database Oldest Replication Slot Lag kept growing and storage decreasing. How would you recommend dealing with it?