Open ghost opened 2 years ago
As far as I understood the second slot is only temporary and normally get dropped so this can be ruled out as cause of WAL files not being dropped.
I can see that before calling saveOffsetOfLastProcessedEvent()
all the streamed changes are filtered by .filter(change -> change.getKind().equals("insert"))
. This would mean updates to the cdc_monitoring
table would update the restart_lsn
column of the replication slot.
Under a busy system load this would I think not be an issue but if no new saga instances would be created this would cause the WAL files to stack up indefinitely until a new insert is being made.
Hello,
using eventuate with postgres wal configuration results in wal files not being recycled and storage to increase indefinitely.
Looking into the PostgresWalClient I see that the
eventuate_slot
is used and therestart_lsn
is being updated but not foreventuate_slot2
.Selecting from
pg_replication_slots
results that the restart_lsn foreventuate_slot2
is much older thaneventuate_slot
which would explain why all the wal files up to 0/18765A0 would not be deleted.Is there any configuration I am missing what could explain this problem or does the second replication spot needs updating as well?