Bug#1052053: popularity-contest: race condition between the two cron jobs
On Sat, Sep 16, 2023 at 06:21:56PM +0200, Alexandre Detiste wrote:
> Package: popularity-contest
> Version: 1.77
> Severity: normal
>
> Hi,
>
> I have been unlucky and the two instance of the cronjob
> triggered at the same time, stepping on eachother feets.
>
> (at the "savelog -c 7 popularity-contest >/dev/null" step precisely)
Sorry for the delay in getting back to you.
> Can you implement some locking ?
I expected savelog would implement locking against itself at least
but this is not the case.
> Or alternatively #923014 will get you locking for free
> on systemd running systems.
Would you help me with this ?
Do you have spurious logfiles like
/var/log/popularity-contest.1010995
/var/log/popularity-contest.1010995.gpg
Cheers,
--
Bill. <ballombe@debian.org>
Imagine a large red swirl here.
Reply to: