Marius Grama
02/21/2023, 8:51 AMThe Delta transaction log will often contain many (e.g. 10,000+) files.
Gerhard Brueckl
02/21/2023, 10:07 AMVACUUM
afterwards to free up the space of the data files also.
but in your case I would rather investigate why the logs are not cleaned up automatically (assuming they are older than your delta.logRetentionDuration
and a checkpoint was recently created) OR why you do have so many logs at all. It could very well be that you have a streaming job that writes into your delta table continuously thereby producing a lot of log filesMarius Grama
02/21/2023, 10:09 AMGerhard Brueckl
02/21/2023, 10:12 AMMarius Grama
02/21/2023, 10:13 AMdelta.logRetentionDuration
settingGerhard Brueckl
02/21/2023, 1:23 PMMarius Grama
02/21/2023, 1:25 PMdelta.logRetentionDuration
period?Gerhard Brueckl
02/21/2023, 2:05 PMMarius Grama
02/21/2023, 2:33 PMdelta.logRetentionDuration
set to 2 minutes
, but no file has been removed.
Moreover there is no reference in the protocol that the transaction log files should be removed or how they are supposed to be removed.Gerhard Brueckl
02/21/2023, 2:43 PMinterval 2 minutes
not sure though if minute intervals actually workinterval 0 hours
Marius Grama
02/21/2023, 2:45 PMinterval 0 hours
to see what happensGerhard Brueckl
02/21/2023, 2:45 PMMarius Grama
02/21/2023, 2:47 PMGerhard Brueckl
02/21/2023, 2:48 PMDominique Brezinski
02/21/2023, 7:40 PM/**
* Returns the duration in millis for how long to keep around obsolete logs. We may keep logs
* beyond this duration until the next calendar day to avoid constantly creating checkpoints.
*/Marius Grama
02/21/2023, 7:43 PMDominique Brezinski
02/21/2023, 7:43 PMMarius Grama
02/21/2023, 7:43 PMDominique Brezinski
02/21/2023, 7:45 PM457
the number of transaction log files went to 29