[pkg-go] Bug#920827: Error parsing smartmon.prom after upgrade

Antoine Beaupré anarcat at debian.org
Wed Jan 30 19:21:36 GMT 2019

On 2019-01-30 18:25:21, Martín Ferrari wrote:
> On 30/01/2019 17:42, Antoine Beaupré wrote:
>> Hmm... I just noticed I don't see the errors in the logs anymore, so
>> it's quite likely you won't be able to reproduce with the given file,
>> which might explain why I couldn't find a problem with the given line...
>> Is it possible that the exporter is trying to read the file while it's
>> being written, and therefore getting an incomplete record?
> Yes. That must be the issue.
>> If the file is not written atomically (ie. written to a tmp and moved
>> into place), then it's quite likely such race conditions will
>> (eventually) occur...
> I thought this would not be a problem, since the timer service is using
> sponge, but now I see in the manpage that:
>        When possible, sponge creates or updates the output file
> atomically by
>        renaming a temp file into place. (This cannot be done if TMPDIR
> is not
>        in the same filesystem.)
> So I will look into using the same dir as TMPDIR.

Makes sense, nice fix too!

C'est trop facile quand les guerres sont finies
D'aller gueuler que c'était la dernière
Amis bourgeois vous me faites envie
Ne voyez vous pas donc point vos cimetières?
                        - Jaques Brel

More information about the Pkg-go-maintainers mailing list