On Mon, Apr 04, 2022 at 12:49:51PM +0200, Claudio Jeker wrote: > This diff alters the way rpki-client cleans up the cache directory. > While with rsync any file can be removed and on the next run it will be > fetched again RRDP has no such logic. It is a very fragile protocol and > only works if files are not removed by something else. > > Until now files are just unlinked from the cache if they are no longer > used but then RRDP gets very confused and the cache slowly gets out of > sync. It requires a RRDP delta to alter a missing file to trigger a full > resync and that can take some time. > > To fix this I changed the cleanup process to only remove rsync backed > files. The RRDP backed files are now moved back into the .rrdp folder and > hopefully the next delta sync will delete them. With this change the cache > should no longer get out of sync.
I have reviewed and tested this diff over the week-end. ok tb as soon as you think you had enough tests.