Fixed
Created: Mar 31, 2022
Updated: Nov 22, 2022
Resolved Date: Oct 17, 2022
Found In Version: 10.21.20.10
Fix Version: 10.21.20.14
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: Userspace
Workaround
The following systemd issue has been reported by the community:
[https://github.com/systemd/systemd/issues/9934]
It seems to be an older report:
[https://bugzilla.redhat.com/show_bug.cgi?id=979487]
To put it shortly, it appears that calling sd_journal_next() after calling sd_journal_seek_tail(), returns some older entries that are not correlated with anything that might have appeared since the sd_journal_seek_tail() call. The report noticed that sd_journal_next() will return one entry per journal in the above scenario.
There is a workaround for this, namely to use sd_journal_previous_skip (..., 1) call after
the sd_journal_seek_tail:
[https://github.com/commaai/openpilot/pull/23319/commits/3b9b2924406196411c693d6f5e66112452d884a9]